Answers for "get my most used command from history"

0

get my most used command from history

history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl |  head -n10
Posted by: Guest on August-02-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language