您的位置:首页 > 博客中心 > 网络系统 >

linux uniq 命令

时间:2022-04-03 14:43

 

uniq 

报告或删除重复文件中的行

 

-c 在输出行前面加上每行在输入文件中的次数

 

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

 

热门排行

今日推荐

热门手游