Skip to content

Instantly share code, notes, and snippets.

@qrw
Created June 16, 2012 16:32
Show Gist options
  • Save qrw/2941874 to your computer and use it in GitHub Desktop.
Save qrw/2941874 to your computer and use it in GitHub Desktop.
history top 10
history |awk '{C[$2]++;count++;} END {for(a in C) print C[a]" " C[a]/count*100 "% " a}' |grep -v "./" |column -c3 -s " " -t|sort -nr |nl|head -n 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment