uniq.1 - sbase - suckless unix tools | |
git clone git://git.suckless.org/sbase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
uniq.1 (832B) | |
--- | |
1 .Dd October 8, 2015 | |
2 .Dt UNIQ 1 | |
3 .Os sbase | |
4 .Sh NAME | |
5 .Nm uniq | |
6 .Nd report or filter out repeated lines in a file | |
7 .Sh SYNOPSIS | |
8 .Nm | |
9 .Op Fl c | |
10 .Op Fl d | u | |
11 .Op Fl f Ar num | |
12 .Op Fl s Ar num | |
13 .Op Ar input Op Ar output | |
14 .Sh DESCRIPTION | |
15 .Nm | |
16 reads the | |
17 .Ar input | |
18 file and writes one copy of a line from each group of consecutive | |
19 duplicate lines to the | |
20 .Ar output | |
21 file. | |
22 If no | |
23 .Ar input | |
24 file is given | |
25 .Nm | |
26 reads from stdin. | |
27 If no | |
28 .Ar output | |
29 file is given | |
30 .Nm | |
31 writes to stdout. | |
32 .Sh OPTIONS | |
33 .Bl -tag -width Ds | |
34 .It Fl c | |
35 Prefix each line with the number of consecutive occurrences in | |
36 .Ar input . | |
37 .It Fl d | Fl u | |
38 Print duplicate | unique lines only. | |
39 .It Fl f Ar num | Fl s Ar num | |
40 Ignore the first | |
41 .Ar num | |
42 fields | characters in each input line when doing comparisons. | |
43 .El | |
44 .Sh STANDARDS | |
45 The | |
46 .Nm | |
47 utility is compliant with the | |
48 .St -p1003.1-2013 | |
49 specification. |