Skip to content

Instantly share code, notes, and snippets.

@theseanything
Created July 1, 2019 15:48
Show Gist options
  • Save theseanything/059c72db53d25f36e3bad8762fe02596 to your computer and use it in GitHub Desktop.
Save theseanything/059c72db53d25f36e3bad8762fe02596 to your computer and use it in GitHub Desktop.
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a; }' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment