uniq - report or omit repeated adjacent lines
uniq [-c] [-d] [-u] [file]
Options you will use
-c, --count- Prefix each line with the number of occurrences.
-d- Only print duplicated lines.
-u- Only print unique lines.
Gotchas
- uniq only collapses ADJACENT duplicates. Always
sort | uniq -c.
Try uniq in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.