Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uniq(1) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



UNIQ(1)         DOMAIN/IX Reference Manual (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.

     Several options that you may use with uniq are described
     below.  In addition, you can specify n arguments to skip an
     initial portion of each line in the comparison.

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 6/10/85                                            UNIQ-1



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