uniq

uniq;

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

usage:uniq file 

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

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

    

  

原文地址:https://www.cnblogs.com/jycjy/p/8251753.html