Skip to content

Instantly share code, notes, and snippets.

@IgorMuzyka
Created January 23, 2014 10:05
Show Gist options
  • Save IgorMuzyka/8576014 to your computer and use it in GitHub Desktop.
Save IgorMuzyka/8576014 to your computer and use it in GitHub Desktop.
#!/bin/sh
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment