Search This Blog

Thursday, November 22, 2018

Linux command uniq stands for "unique" and filters out adjacent, duplicate lines in a file.

uniq -- report or filter out repeated lines in a file

The uniq utility reads the specified input_file comparing adjacent lines,
     and writes a copy of each unique input line to the output_file.