[Gllug] sort & uniq

Mark Hill gllug_list at mark.ukfsn.org
Mon Aug 4 22:11:23 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?

-- 
Mark Hill

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list