[Gllug] sort & uniq
Robert McKay
rm at createservices.com
Tue Aug 5 15:42:50 UTC 2003
On Tue, 5 Aug 2003, Daniel Andersson wrote:
> > 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.
>
> tried that
> same result, two instances of 225 in the result :o/
>
> the file i'm 'playing' with is
> http://daniel.septum.org/testfile.txt
>
> i can't find anything odd with any of the 225's..
>
> thanks for the help
>
> / d
Just adding to the spam... :)
[rm at paqovicuna mail]$ lynx -source http://daniel.septum.org/testfile.txt |
cat -A | sort | uniq -c | grep 225
130105 225$
1 225^M$
[rm at paqovicuna mail]$
-Robert.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list