version 1.4, 2000/03/05 00:28:56 |
version 1.5, 2000/03/11 21:40:07 |
|
|
.Oc |
.Oc |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm uniq |
.Nm |
utility reads the standard input comparing adjacent lines and writes |
utility reads the standard input comparing adjacent lines and writes |
a copy of each unique input line to the standard output. |
a copy of each unique input line to the standard output. |
The second and succeeding copies of identical adjacent input lines are |
The second and succeeding copies of identical adjacent input lines are |
|
|
in each input line when doing comparisons. |
in each input line when doing comparisons. |
A field is a string of non-blank characters separated from adjacent fields |
A field is a string of non-blank characters separated from adjacent fields |
by blanks. |
by blanks. |
Field numbers are one based, i.e. the first field is field one. |
Field numbers are one based, i.e., the first field is field one. |
.It Fl s Ar chars |
.It Fl s Ar chars |
Ignore the first |
Ignore the first |
.Ar chars |
.Ar chars |
|
|
characters after the first |
characters after the first |
.Ar fields |
.Ar fields |
fields will be ignored. |
fields will be ignored. |
Character numbers are one based, i.e. the first character is character one. |
Character numbers are one based, i.e., the first character is character one. |
.It Fl u |
.It Fl u |
Don't output lines that are repeated in the input. |
Don't output lines that are repeated in the input. |
.\".It Fl Ns Ar n |
.\".It Fl Ns Ar n |
|
|
as the name of an output file. |
as the name of an output file. |
.Pp |
.Pp |
The |
The |
.Nm uniq |
.Nm |
utility exits 0 on success or >0 if an error occurred. |
utility exits 0 on success or >0 if an error occurred. |
|
.Sh SEE ALSO |
|
.Xr sort 1 |
.Sh COMPATIBILITY |
.Sh COMPATIBILITY |
The historic |
The historic |
.Cm \&\(pl Ns Ar number |
.Cm \&\(pl Ns Ar number |
and |
and |
.Fl Ns Ar number |
.Fl Ns Ar number |
options have been deprecated but are still supported in this implementation. |
options have been deprecated but are still supported in this implementation. |
.Sh SEE ALSO |
|
.Xr sort 1 |
|
.Sh STANDARDS |
.Sh STANDARDS |
The |
The |
.Nm uniq |
.Nm |
utility is expected to be |
utility is expected to be |
.St -p1003.2 |
.St -p1003.2 |
compatible. |
compatible. |