Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uniq.bsd(1) — Domain/IX SR9.2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

UNIQ(1)

NAME

uniq − report repeated lines in a file

USAGE

uniq [ −udc [ +n ] [ −n ] ] [ input [ output ] ]

DESCRIPTION

Uniq reads the input file, comparing adjacent lines.  Usually, it removes the second and succeeding copies of repeated lines, and writes the remainder on the output file.  Repeated lines must be adjacent in order to be found; refer to sort (1) for more information on this. 

OPTIONS

−u Output only the lines not repeated in the original file. 

−d Write a copy of only the repeated lines. 

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

−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 adjacent characters by tabs and spaces. 

+n Ignore the first n characters.  Fields are skipped before characters. 

RELATED INFORMATION

comm (1), sort (1). 

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