uniq (Unique)
0%

Text-Fu · Lesson 14

uniq (Unique)

Learn how to collapse, count, or filter adjacent groups of equal lines with uniq.

The uniq command compares each input line with the preceding line. It can collapse, count, or select groups of adjacent equal lines, but it does not search the entire file for separated duplicates.