cat words.txt | tr -s ' ' '\n' |sort |uniq -c | sort -r |awk '{print $2 ,$1}' tr表示转换 uniq 必须在sort使用后再排序 sort r 反向排序
点赞 1

相关推荐

牛客网
牛客企业服务