uniq command - Softpanorama: (slightly skeptical) Open Source Software Educational Society
The uniq command can eliminate or count duplicate lines in a presorted file. It reads in lines and compares the previous line to the current line. Depending on the options specified on the command line it may display only unique lines or one occurrence of...