linux shell统计文件中重复的行数,打印前十行

history | awk '{$1="";print $0;}' | sort | uniq -c | sort -n -k1 | tail -fn 10

posted @ 2014-03-26 19:16  jiangfullll  阅读(8147)  评论(0)    收藏  举报