uniq is often used as a. See also , , and especially .
-c Print each line once, counting instances of each. -d Print duplicate lines once, but no unique lines. -u Print only unique lines (no copy of duplicate entries is kept). - n Ignore first n fields of a line. Fields are separated by spaces or by tabs. + n Ignore first n characters of a field.
You can specify only one of the options
To send only one copy of each line from
To show which names appear more than once:
To show which lines appear exactly three times:
- from O'Reilly & Associates' UNIX in a Nutshell (SVR4/Solaris)