[Gllug] sort & uniq
Mick Farmer
mick at dcs.bbk.ac.uk
Tue Aug 5 10:32:16 UTC 2003
Dear Daniel,
You probably want the following.
sort -n file | uniq -c | sort -n
The first sort is numeric and you may wish to choose a
delimiter. The uniq command counts occurrences. The second
sort ranks the numbers according to their frequency.
Regards,
Mick /"\
\ /
Linux Registered X ASCII Ribbon Campaign
User #287765 / \ Against HTML Mail
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list