uniq -d 只顯示重復的行 復制代碼 代碼如下: [zhangy@BlackGhost mytest]$ uniq -D uniqtest this is a test this is a test this is a test i love tank i love tank uniq -D 只顯示重復的行,并且把重復幾行都顯示出來。他不能和-c一起使用 復制代碼 代碼如下: [zhangy@BlackGhost mytest]$ u...
[root@stu100 ~]# uniq -c test 2 boy took bat home 1 girl took bat home 2 boy took bat home 3 dog brought hat home 1 -c 參數(shù)顯示文件中每行連續(xù)出現(xiàn)的次數(shù)。 復制代碼 代碼如下: [root@stu100 ~]# cat test |sort | uniq -c ...