From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Linux  
WikiProject icon This article is within the scope of WikiProject Linux, a collaborative effort to improve the coverage of Linux on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 ???  This article has not yet received a rating on the project's quality scale.
 ???  This article has not yet received a rating on the project's importance scale.

Example usage doesn't work on GNU/Linux[edit]

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. (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[edit]

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. (talk) 04:40, 11 May 2009 (UTC)

External links modified[edit]

Hello fellow Wikipedians,

I have just modified 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:

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

Question? Archived sources still need to be checked

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