Skip to content

Instantly share code, notes, and snippets.

@ozymandium
Last active December 16, 2015 03:59
Show Gist options
  • Save ozymandium/5373950 to your computer and use it in GitHub Desktop.
Save ozymandium/5373950 to your computer and use it in GitHub Desktop.
Bash top 20
#!/bin/bash
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment