On Thu, Sep 16, 2004 at 11:14:32AM -0500, Ed Schmollinger wrote: > On Thu, Sep 16, 2004 at 12:33:12AM +0200, Mike Blomgren wrote: > > I'm having trouble with 'sort' taking alot of cpu-time on a Solaris machine, > > and I'm wondering if anyone knows of a replacement for the gnu 'sort' > > command, which is faster and will compile on Solaris and preferably Linux > > too? > > > > I'm using sort in the standard 'cat <file> | awk '{"compute..."}' | sort | > > uniq -c | sort -n -r' type analysis. > > You can get rid of the multiple sorts/uniq thing by doing it all at > once: Or by using GNU sort's -u option, which after getting rid of the unnecessary use of cat leaves: awk ... | sort -u -n -r Chris
_______________________________________________ LogAnalysis mailing list LogAnalysis@private http://lists.shmoo.com/mailman/listinfo/loganalysis
This archive was generated by hypermail 2.1.3 : Mon Sep 20 2004 - 15:03:50 PDT