统计执行命令的次数
看到一个有趣的命令:
history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort -rn|uniq -c|sort -rn|head -10
看到你执行的bash命令的次数,我的结果是:
195 ls
152 cd
29 sudo
18 vi
12 rm
12 mv
11 tar
6 ./sp-sc
4 soapcast
4 grep
典型的伪程序员,连make都没有 :)
December 11th, 2006 in
tech|软件、开源、业界