Hacker News new | ask | show | jobs
by Aaron2222 234 days ago

  sort | uniq -c | sort -n
The second sort is sorting by frequency (the count output by `uniq -c`).
1 comments

I often add `head` with `sort -rn` because I'm only interested in the largest.