Unique(V37) Unique(V37) FFOORRMMAATT UUNNIIQQUUEE [[FFRROOMM] _f_i_l_e] [[TTOO] _f_i_l_e] [RREEPPEEAATTEEDD] [UUNNIIQQUUEE|OONNCCEE] [CCOOUUNNTT] TTEEMMPPLLAATTEE FFRROOMM,,TTOO,,RREEPPEEAATTEEDD//SS,,UUNNIIQQUUEE==OONNCCEE//SS,,CCOOUUNNTT//SS PPUURRPPOOSSEE To report repeated lines in a file. SSPPEECCIIFFIICCAATTIIOONN The command UUNNIIQQUUEE reads the FFRROOMM file comparing adjacent lines. In the normal case, the second and succeeding copies of repeated lines are removed; the remainder is written on the TTOO file. Note that repeated lines must be adjacent to be found (see SSOORRTT). If the OONNCCEE switch is used, just the lines that are not repeated in the original file are output. The RREEPPEEAATTEEDD switch specifies that one copy of just the repeated lines is to be written. The normal mode ouput is the union of the OONNCCEE and RREEPPEEAATTEEDD mode outputs. The synonym UUNNIIQQUUEE for OONNCCEE is kept in this release for compatibility with older versions. The CCOOUUNNTT switch generates an output report with each line preceeded by a count of the number of times it occured. If no FFRROOMM file is given input is read from the default input; likewise if no TTOO file is given output is written to the default output. SSEEEE AALLSSOO CCOOMMMMOONN(V37), CCOOUUNNTT(V37), PPRREEPPAARREE(V37), SSOORRTT(AmigaDOS), SSOORRTT(ARP) BBUUGGSS Unique will fail to function correctly given input lines longer than 512 characters. UUNNIIXX EEQQUUIIVVAALLEENNTT uunniiqq(1) AAUUTTHHOORR Torsten Poulin (torsten@diku.dk) UUNNRREESSTTRRIICCTTIIOONNSS UUNNIIQQUUEE is free; anyone may redistribute copies of UUNNIIQQUUEE to anyone under the terms stated in the GNU General Public Licence, a copy of which accompanies each copy of UUNNIIQQUUEE. Torsten Poulin encourages you to improve and extend UUNNIIQQUUEE, and urges that you contribute your extensions to the world. Unique version 37.7 20 June 1993 1