参考:http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858385.html sort < InputFile | uniq -c 转载于:https://www.cnblogs.com/cnblogist/p/5910745.html