>history 1000 | awk '{a[$2]++}END{for(i in a){print a " " i}}' | sort -rn | head 116 git 98 ls 68 cd 55 shoes 19 mvim 12 mate 11 svn 10 vim 10 sudo 10 cat