Audit uniq(1)
Refactor the manpage and small style-changes in uniq.c. Remove unnecessary "else", we catch argc > 2 earlier already.
This commit is contained in:
29
uniq.1
29
uniq.1
@@ -1,4 +1,4 @@
|
||||
.Dd January 30, 2015
|
||||
.Dd March 17, 2015
|
||||
.Dt UNIQ 1
|
||||
.Os sbase
|
||||
.Sh NAME
|
||||
@@ -8,8 +8,8 @@
|
||||
.Nm
|
||||
.Op Fl c
|
||||
.Op Fl d | u
|
||||
.Op Fl f Ar fields
|
||||
.Op Fl s Ar chars
|
||||
.Op Fl f Ar num
|
||||
.Op Fl s Ar num
|
||||
.Op Ar input Op Ar output
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
@@ -20,29 +20,24 @@ duplicate lines to the
|
||||
.Ar output
|
||||
file. If no
|
||||
.Ar input
|
||||
file is given,
|
||||
file is given
|
||||
.Nm
|
||||
reads from stdin. If no
|
||||
.Ar output
|
||||
file is given, then
|
||||
file is given
|
||||
.Nm
|
||||
writes to stdout.
|
||||
.Sh OPTIONS
|
||||
.Bl -tag -width Ds
|
||||
.It Fl c
|
||||
Prefixes each line with a count of its consecutive occurrences in the input.
|
||||
.It Fl d
|
||||
Suppresses non-duplicate lines (thus 'uniq -d' prints only duplicates).
|
||||
.It Fl u
|
||||
Suppresses non-unique lines (thus 'uniq -u' prints only uniques).
|
||||
.It Fl f Ar fields
|
||||
Prefix each line with the number of consecutive occurrences in
|
||||
.Ar input .
|
||||
.It Fl d | Fl u
|
||||
Print duplicate | unique lines only.
|
||||
.It Fl f Ar num | Fl s Ar num
|
||||
Ignore the first
|
||||
.Ar fields
|
||||
in each input line when doing comparisons.
|
||||
.It Fl s Ar chars
|
||||
Ignore the first
|
||||
.Ar chars
|
||||
characters in each input line when doing comparisons.
|
||||
.Ar num
|
||||
fields | characters in each input line when doing comparisons.
|
||||
.El
|
||||
.Sh STANDARDS
|
||||
The
|
||||
|
Reference in New Issue
Block a user