shell 判断文件出现次数

判断 file 文件中 第一个变量 出现次数

awk '{print $1}' file  |sort |uniq -c|sort -k1r

  

原文地址:https://www.cnblogs.com/sharesdk/p/8710194.html