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

1.1       root        1: .th UNIQ I 12/1/72
                      2: .sh NAME
                      3: uniq \*- report repeated lines in a file
                      4: .sh SYNOPSIS
                      5: .bd uniq
                      6: [
                      7: .bd \*-udc
                      8: [ \fB+\fRn ] [ \fB\*-\fRn ]
                      9: ] [ input [ output ] ]
                     10: .sh DESCRIPTION
                     11: .it Uniq
                     12: reads the input
                     13: file comparing adjacent lines.
                     14: In the normal case, the second and succeeding copies
                     15: of repeated lines are
                     16: removed; the remainder is written on the output file.
                     17: Note that repeated lines must be adjacent
                     18: in order to be found;
                     19: see sort(I).
                     20: If the
                     21: .bd \*-u
                     22: flag is used,
                     23: just the lines that are not repeated
                     24: in the original file are output.
                     25: The
                     26: .bd \*-d
                     27: option specifies that
                     28: one copy of just the repeated lines is to
                     29: be written.
                     30: The normal mode output is the union of the
                     31: .bd \*-u
                     32: and
                     33: .bd \*-d
                     34: mode outputs.
                     35: .s3
                     36: The
                     37: .bd \*-c
                     38: option supersedes
                     39: .bd \*-u
                     40: and
                     41: .bd \*-d
                     42: and generates
                     43: an output report in the style of
                     44: .bd \*-ud
                     45: but with each line preceded by a count of the
                     46: number of times it occurred.
                     47: .s3
                     48: The
                     49: .it n
                     50: arguments specify skipping an initial portion of each line
                     51: in the comparison:
                     52: .s3
                     53: .lp +8 4
                     54: \fB\*-\fIn\fR  The first \fIn\fR fields
                     55: together with any blanks before each are ignored.
                     56: A field is defined as a string of non-space, non-tab characters
                     57: separated by tabs and spaces from its neighbors.
                     58: .s3
                     59: .lp +8 4
                     60: \fB+\fIn\fR    The first \fIn\fR characters are ignored.
                     61: Fields are skipped before characters.
                     62: .i0
                     63: .s3
                     64: .sh "SEE ALSO"
                     65: sort(I), comm(I)
                     66: .sh BUGS

unix.superglobalmegacorp.com

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