Talk:Uniq

Example usage doesn't work on GNU/Linux
Possibly just worth a mention that the example usage given:
 * sort file | uniq -c | sort -n

doesn't work on Linux. uniq pads the count value on each line with some whitespace, and sort expects the first character on the line to be numeric, otherwise it doesn't perform a numeric sort. The command line given will not work as described because the first character on each line piped into sort is non-numeric. 86.132.65.107 (talk) 12:57, 21 December 2008 (UTC)


 * Works for me. I do this all the time on Linux. Edward (talk) 23:27, 31 January 2011 (UTC)

Article gives advice on how to do something
The first section of the article says "Be careful, uniq expects its input to be already sorted; sometimes sort -u is what you need." It should probably be reworded to sound more encyclopaedic or removed altogether.

Also, I was under the impression that sort -u was equivalent to sort | uniq.75.17.157.194 (talk) 04:40, 11 May 2009 (UTC)

External links modified
Hello fellow Wikipedians,

I have just modified 1 one external link on Uniq. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
 * Added archive http://web.archive.org/web/20051028205957/http://www.linuxmanpages.com:80/man1/uniq.1.php to http://www.linuxmanpages.com/man1/uniq.1.php

When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at ).

Cheers.— InternetArchiveBot  (Report bug) 19:59, 20 July 2016 (UTC)