That's backwards.  You have to put the sort to the left of the uniq for it to work, because uniq requires that its input already be sorted.  The beauty of the Unix philosophy is that uniq doesn't have to know about sorting, because sort already does. 

 
On 12/22/05, Luke-Jr <luke@dashjr.org> wrote:
On Friday 23 December 2005 04:35, Jim Herrmann wrote:
> Thanks to Ron also.  This may be easier to remember since it uses more
> common commands.

How is 'sort' and more common than 'uniq'? I really only use the two in
combination (uniq -c | sort -n) anyway...