Count, Sort, Remove Duplicates: wc, sort and uniq
wc counts lines, words and characters, sort puts lines in order, as text or with -n as numbers, and uniq merges repeated lines that sit next to each other, so sort | uniq -c | sort -rn ranks how often each line appears.
Updated

- Category
- Bash
- Level
- Apprentice
- Tags
- linux, sort-and-uniq, unix, wc