Created
July 21, 2012 08:28
-
-
Save ngn999/3155115 to your computer and use it in GitHub Desktop.
统计最常用的10条命令
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history | perl -anle '$c{$F[3]}++; END{@keys = sort { $c{$b} <=> $c{$a}} keys %c; foreach(@keys){print;}}' | |
| head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment