Created
January 6, 2012 13:16
-
-
Save gamefiend/1570547 to your computer and use it in GitHub Desktop.
print top ten commands from bash history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment