Skip to content

Instantly share code, notes, and snippets.

@noromanba
Forked from morygonzalez/コマンド使用率ランキング.sh
Last active December 12, 2015 08:49
Show Gist options
  • Save noromanba/4747254 to your computer and use it in GitHub Desktop.
Save noromanba/4747254 to your computer and use it in GitHub Desktop.
display frequently used commands
#/!bin/sh
# display frequently used commands
# @contributor tokuhirom http://blog.64p.org/entry/20060924/1159057218
# @contributor morygonzalez https://gist.github.com/morygonzalez/935909
# @author noromanba https://gist.github.com/noromanba/4747254
perl -pe 's/.+;//' ~/.`basename $0`_history | awk 'BEGIN {FS="|"} {print $1}' | sort | uniq -c | sort -nr | head -10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment