Return to Snippet

Revision: 63459
at May 9, 2013 23:16 by kuonirat


Updated Code
history | awk '{ print $2 }' | awk '{ a[$0]++ } END { for(key in a) print a[key], key }' | sort -rn | head -n 100

Revision: 63458
at May 9, 2013 22:50 by kuonirat


Initial Code
history | awk '{ print $2 }' | sort | awk '{ a[$0]++ } END { for(key in a) print a[key], key }' | sort -rn | head -n 100

Initial URL

                                

Initial Description
For fun and work optimisation purposes :)

Initial Title
Print 100 most often used commands

Initial Tags

                                

Initial Language
Bash