I had never heard of uniq, but sort is quite common. I think that uniq also requires the input to be sorted if you want to get rid of all duplicates. No? However, sort -u won't give you a count like uniq - c will. Good point.
Thanks, Jim
Luke-Jr 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...