STScI logoSTSDAS Help Pages
unique lists unique

NAME · USAGE · PARAMETERS · DESCRIPTION · EXAMPLES · SEE_ALSO

NAME

unique -- remove repeated adjacent lines from a file

USAGE

unique files

PARAMETERS

files
List of files to be processed.

DESCRIPTION

Task unique reads the input comparing adjacent lines. The second and successive copies of a line are removed; the remainder is passed on to the standard output.

EXAMPLES

Remove repeated names from a list. Note the input file has been sorted alphabetically so repeated names are adjacent.

cl> sort names | unique > names.final

SEE ALSO

sort


Source Code · Search Form · STSDAS

Maintained by the Science Software Group at STScI
This file last updated on 19 Sep 2001