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