Sortiq - sort, uniq, sort
This is a small snippet I find extremely useful. You should have it in your ~/.bashrc
:
sortiq() { sort | uniq -c | sort -rn ; }
It will count the instances of each line, sorting them from most common to least common.
What is this for
It answers the question "How much of each …
more ...