uniq

uniq;

    report or omit repeated lines    omit(省略; 遗漏; 删掉;)    把重复的行输出或省略

usage:uniq file 

    uniq -c file    ---   -c count 把重复的行数打印出来

    uniq -d file    ---   -d repeated 只打印重复的行

    

  

posted @ 2018-01-09 15:44  酸奶加绿茶  阅读(134)  评论(0编辑  收藏  举报