Skip to content

Instantly share code, notes, and snippets.

@Phazz
Created August 1, 2013 13:48
Show Gist options
  • Save Phazz/6131502 to your computer and use it in GitHub Desktop.
Save Phazz/6131502 to your computer and use it in GitHub Desktop.
Typing history in shell
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment