Report or omit repeated lines
$ sort file | uniq
$ sort file | uniq -c
$ sort file | uniq -d (duplicates only)