Skip to content

Instantly share code, notes, and snippets.

@sergkondr
Created August 15, 2019 10:07
Show Gist options
  • Save sergkondr/5b0dfb069e927254296a11c9ea5de40c to your computer and use it in GitHub Desktop.
Save sergkondr/5b0dfb069e927254296a11c9ea5de40c to your computer and use it in GitHub Desktop.
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | grep -v "#" | sort -nr | nl | column -c3 -s " " -t | head -10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment