Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

comm(1)

sort(1)



UNIQ(1)                  DOMAIN/IX SYS5                   UNIQ(1)



NAME
     uniq - report repeated lines in a file

USAGE
     uniq [ -udc [ -n ] [ +n ] ] [ input [ output ] ]

DESCRIPTION
     Uniq reads the input file, and compares adjacent lines.
     Normally, it removes the second and succeeding copies of
     repeated lines, and writes the remainder on the output file.
     Input and output should always be different.  Note that
     repeated lines must be adjacent to be found.  See sort(1)
     for further details.

OPTIONS
     -n        Ignore the first n fields, together with any
               blanks before each.  A field is defined as a
               string of nonspace, nontab characters separated
               from its neighbors by tabs and spaces. Fields are
               skipped before characters.

     +n        Ignore the first n characters.

     -u        Output only those lines not repeated in the origi-
               nal file.

     -d        Write a copy of only the repeated lines.

     -c        Supersede the -u and -d options and generate an
               output report in default style, but with each line
               preceded by a count of the number of times it
               occurred.

RELATED INFORMATION
     comm(1), sort(1).


















Printed 12/4/86                                            UNIQ-1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026