Annotation of researchv10dc/dist/man/v3/man1/uniq.1, revision 1.1.1.1

1.1       root        1: .pa 1
                      2: .he 'UNIQ (I)'12/1/72'UNIQ (I)'
                      3: .ti 0
                      4: NAME           uniq -- report repeated lines in a file
                      5: .sp
                      6: .ti 0
                      7: SYNOPSIS       uniq____ [ -ud___ ]  [ input [ output ] ]
                      8: .sp
                      9: .ti 0
                     10: DESCRIPTION    uniq____
                     11: reads the input
                     12: file comparing adjacent lines.
                     13: In the normal case, the second and succeeding copies
                     14: of repeated lines are
                     15: removed; the remainder is written on the output file.
                     16: Note that repeated lines must be adjacent
                     17: in order to be found.
                     18: (See sort(I))
                     19: If the -u__ flag is used,
                     20: just the lines that are not repeated
                     21: in the original file are output.
                     22: The -d__ option specifies that
                     23: one copy of just the repeated lines is to
                     24: be written.
                     25: Note that the normal mode output is the union of the
                     26: -u__ and -d__ mode outputs.
                     27: .sp
                     28: The following example will print one copy of all
                     29: lines in the file a_ that do not occur in b_:
                     30: .sp
                     31:        sort a x
                     32:        uniq x a1
                     33:        sort b x
                     34:        uniq x b1
                     35:        cat a1 b1 >x
                     36:        sort x
                     37:        uniq -u x >>a1
                     38:        sort a1
                     39:        uniq -d a1
                     40: .sp
                     41: .ti 0
                     42: FILES          --
                     43: .sp
                     44: .ti 0
                     45: SEE ALSO       sort(I)
                     46: .sp
                     47: .ti 0
                     48: DIAGNOSTICS    "cannot open input", "cannot create output"
                     49: .sp
                     50: .ti 0
                     51: BUGS           --

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.