uniq 

删除重复文件中的行

 

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

 

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

 

相关文章:

  • 2021-12-02
  • 2021-05-10
  • 2021-11-27
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
猜你喜欢
  • 2021-08-29
  • 2021-07-11
  • 2022-02-20
  • 2021-10-07
  • 2021-12-18
相关资源
相似解决方案