uniq

å称
     uniq — ãã¡ã¤ã«åã®éè¤è¡ã®å ±åã¾ãã¯ããã£ã«ã¿åºå

æ¸å¼
     uniq [-c | -d | -u] [-i] [-f num] [-s chars] [input_file [output_file]]

解説
     uniq ã¦ã¼ãã£ãªãã£ã¯ã input_file ãèªã¿è¾¼ã¿ãé£ãåãè¡å士ãæ¯è¼ãã
     éè¤ããè¡ãåãé¤ã㦠output_file ã¸æ¸ãè¾¼ã¿ã¾ãã input_file ãåä¸ã®ããã·ã¥ (‘-’)
     ã¾ãã¯ç¡ãå ´åãæ¨æºå¥åãèªã¿è¾¼ã¾ãã¾ãã output_file
     ãç¡ãå ´åãæ¨æºåºåãåºåã¨ãã¦ä½¿ç¨ããã¾ãã é£ãåã£ãè¡ãåãå容ã ã£ãã 2
     è¡ç®ä»¥éãåºåãã¾ããã
     åãå容ã§ãè¡ãé£ãåã£ã¦ããªãå ´åã¯æ¯è¼ã®å¯¾è±¡ã«ãªãã¾ããã®ã§ã
     ã¾ããã¡ã¤ã«ãã½ã¼ãããäºãå¿è¦ã«ãªãããããã¾ããã

     ãªãã·ã§ã³ã¨ãã¦ã¯ä»¥ä¸ã®ãã®ãããã¾ã:

     -c      ååºåè¡ã®åé ã«ãè¡ãå¥åä¸ã«ç¶ãã¦åºç¾ããåæ°ã表示ãã空ç½ä¸ã¤ããã¦
             ãã®è¡ã®å容ã表示ãã¾ãã

     -d      éè¤ããè¡ã®ã¿ãåºåãã¾ãã

     -f num  æ¯è¼ããæã«ãåå¥åè¡ã®åé ãã num åã®ãã£ã¼ã«ããç¡è¦ãã¾ãã
             ãã£ã¼ã«ãã¨ã¯ã空ç½æåã§åºåãããã空ç½ä»¥å¤ã®æåãããªãæååã§ãã num
             ãæå®ããã¨ãã¯ãæåã®ãã£ã¼ã«ãã 1 ã¨ãã¦æ°ãã¾ãã

     -s chars
             æ¯è¼ããæã«ãåå¥åè¡ã®åé ãã chars æåãç¡è¦ãã¾ãã æ¬ãªãã·ã§ã³ã -f
             ãªãã·ã§ã³ã¨ä¸ç·ã«æå®ããå ´åã¯ã num åã®ãã£ã¼ã«ãã«ç¶ã chars æå‐
             ãç¡è¦ããã¾ãã chars ãæå®ããã¨ãã¯ãæåã®æåã 1 ã¨ãã¦æ°ãã¾ãã

     -u      å¥åã®éè¤ããªãã£ãè¡ã®ã¿ãåºåãã¾ãã

     -i      è¡ã®æ¯è¼ã«ããã¦å¤§æåå°æåãåºå¥ãã¾ããã

ç°å¢å¤æ°
     LANG, LC_ALL, LC_COLLATE, LC_CTYPE ã®ç°å¢å¤æ°ãã environ(7) ã®è¨è¿°éãã«ã
     uniq ã®å®è¡ã«å½±é¿ãã¾ãã

診æ
     The uniq utility exits 0 on success, and >0 if an error occurs.

äºææ§
     å¤ããããã +number 㨠-number
     ã®ãªãã·ã§ã³ã¯æ代éãã§ããããã®å®è£ã§ã¯ã¾ã ãµãã¼ããã¦ãã¾ãã

é¢é£é ç®
     sort(1)

è¦æ ¼
     uniq ã¦ã¼ãã£ãªãã£ã¯ã Cor. 1-2002 ã§æ¹æ£ããã IEEE Std 1003.1-2001
     (“POSIX.1”) ã«é©åãã¦ãã¾ãã

æ´å²
     uniq ã³ãã³ã㯠Version 3 AT&T UNIX ããç»å ´ãã¾ããã