码迷,mamicode.com
首页 > 系统相关 > 详细

linux uniq 命令

时间:2018-10-19 23:39:26      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:root   重复   linux   linu   txt   name   color   uniq   输出   

 

uniq 

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

 

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

 

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

 

linux uniq 命令

标签:root   重复   linux   linu   txt   name   color   uniq   输出   

原文地址:https://www.cnblogs.com/mingerlcm/p/7799655.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!