Shell命令统计wordcount

hello
aaa
hello
more aa|awk '{a[$1]+=1}END{for(i in a){print i"|"a[i]}}'
hello|2
aaa|1

 

posted on 2020-06-12 15:41  郝心人forever  阅读(210)  评论(0)    收藏  举报