version 1.19, 2016/10/24 13:46:58 |
version 1.20, 2017/12/21 10:05:59 |
|
|
.Nd report or filter out repeated lines in a file |
.Nd report or filter out repeated lines in a file |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm uniq |
.Nm uniq |
.Op Fl c |
.Op Fl ci |
.Op Fl d | u |
.Op Fl d | u |
.Op Fl f Ar fields |
.Op Fl f Ar fields |
.Op Fl s Ar chars |
.Op Fl s Ar chars |
|
|
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, with blanks considered part of the following field. |
by blanks, with blanks considered part of the following field. |
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 i |
|
Case insensitive comparison of lines. |
.It Fl s Ar chars |
.It Fl s Ar chars |
Ignore the first |
Ignore the first |
.Ar chars |
.Ar chars |
|
|
.St -p1003.1-2008 |
.St -p1003.1-2008 |
specification. |
specification. |
.Pp |
.Pp |
The use of |
The |
|
.Fl i |
|
option and the use of |
.Fl c |
.Fl c |
in conjunction with |
in conjunction with |
.Fl d |
.Fl d |
or |
or |
.Fl u |
.Fl u |
is an extension to that specification. |
are extensions to that specification. |
.Pp |
.Pp |
The historic |
The historic |
.Cm + Ns Ar number |
.Cm + Ns Ar number |