ºìÁªLinuxÃÅ»§
Linux°ïÖú

uniq----¹ýÂË¡¢Í³¼Æ¡¢É¾³ýÖظ´ÐÐ

·¢²¼Ê±¼ä:2009-02-01 22:16:07À´Ô´:ºìÁª×÷Õß:videoout
À´Ô´/ÍøÂç¡¡×÷Õß/²»Ïê

uniq [options][file1 [files]]

$ uniq -c file
fileÖеÄÖظ´ÐÐÊä³öÒ»´Î£¬²¢ÔÚÿÐÐÇ°ÏÔʾÖظ´´ÎÊý

$ uniq -d file
fileÖеÄÖظ´ÐÐÊä³öÒ»´Î£¬µ«²»Êä³öΨһµÄÐÐ

$ uniq -u file
Ö»Êä³öfileÖеÄΨһÐÐ

$ uniq file1 file2
°Ñfile1ÖеÄÖظ´µÄÏàÁÚÐÐɾ³ý£¬²¢°ÑÿÐеÄÒ»¸ö¿½±´Ë͵½file2
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. deyi321 ÓÚ 2009-02-12 10:53:10·¢±í:

    ²»´í,ÓÐÒâ˼,¶¥!Ç¿ÁÒÖ§³Ö!