📜  从历史中获取我最常用的命令 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:35.245000             🧑  作者: Mango

代码示例1
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