4

Uniq - Displaying unique lines in text documents - Linux -

view full story
linux-howto

http://www.go2linux.org – Uniq is a Linux Operating System command, that removes successive repeated lines in its output. So if the input is a file that has repetitive lines, all of them will be removed but one, only if they are successive. To assure that all repetitive lines are removed, the file needs to be sorted first. <!--break--> The format of the file is: uniq [options] [input-file] [output-file] If no imput-file is specified, the input is taken from the standard input, also, if no outpu-file is specified the output is send to the standard outpu (HowTos)