Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (t - u) uniq(1)
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).
527188-021 Hewlett-Packard Company 935