[Gllug] sort & uniq
Daniel Andersson
daniel at septum.org
Mon Aug 4 22:21:28 UTC 2003
> On Mon, Aug 04, 2003 at 11:00:31PM +0100, Daniel Andersson wrote:
> >
> > sort file | uniq -c
> ...
> > one would assume that i'd never receive lines with the same number,
right?
> >
> > but i do..
> >
> >
> > 122662 225
> > 1 225
> >
> > linux, textutils 2.0
>
> Just made a test file with '225' and '225 ' on seperate lines and
> noticed they were counted seperately. Perhaps this is what's happening?
nah
daniel at cj:~# more cj
225
102
225
daniel at cj:~# sort cj | uniq -c
1 102
2 225
so it works there
i was more thinking that uniq might not be able to put bigger numbers on one
line, for some weird reason?
one would think it would go up to 999999, but who knows?
/ d
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list