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
时间: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