Skip to content

Instantly share code, notes, and snippets.

@onlytiancai
Last active December 14, 2015 22:29
Show Gist options
  • Save onlytiancai/5158706 to your computer and use it in GitHub Desktop.
Save onlytiancai/5158706 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 "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
# (陈皓注:有点复杂了,history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c|sort -rn|head -10)
# 这行脚本能输出你最常用的十条命令,由此甚至可以洞察你是一个什么类型的程序员。
@laomo
Copy link

laomo commented Apr 12, 2013

发现使用最多的是自己写的脚本。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment