Created
June 13, 2014 14:55
-
-
Save regnerjr/00a91a39b53456bc3087 to your computer and use it in GitHub Desktop.
Print your 100 most used commands, from http://megasnippets.com/fr/source-codes/unix_bash/Print_100_most_often_used_commands
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 '{ print $2 }' | awk '{ a[$0]++ } END { for(key in a) print a[key], key }' | sort -rn | head -n 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment