linux uniq 命令

 

uniq 

删除重复文件中的行

 

-c 去重复,并计算每行出现的次数

 

[root@cdncenter ~]# find . -name '*.txt' |sort -n|uniq -c
      1 ./1.txt
      1 ./2.txt
      1 ./3.txt

 

posted @ 2018-10-19 22:26  minger_lcm  阅读(294)  评论(0编辑  收藏  举报