Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
uniq(1) OSS Shell and Utilities Reference Manual
EXAMPLES
To delete repeated lines in the following file called fruit and save it to a file named newfruit,
enter:
uniq fruit newfruit
The file fruit contains the following lines:
apples
apples
bananas
cherries
cherries
peaches
pears
The file newfruit contains the following lines:
apples
bananas
cherries
peaches
pears
RELATED INFORMATION
Commands: comm(1), sort(1).
9−34 Hewlett-Packard Company 527188-003