uniq

Report or omit repeated lines

← All commands

Common Examples

$ sort file | uniq
$ sort file | uniq -c
$ sort file | uniq -d (duplicates only)