Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
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-007 Hewlett-Packard Company 9−35