1UNIQ(1)                     General Commands Manual                    UNIQ(1)
2
3
4

NAME

6       uniq - report repeated lines in a file
7

SYNOPSIS

9       uniq [ -udc [ +n ] [ -n ] ] [ input [ output ] ]
10

DESCRIPTION

12       Uniq  reads  the  input  file  comparing adjacent lines.  In the normal
13       case, the second and succeeding copies of repeated lines  are  removed;
14       the  remainder is written on the output file.  Note that repeated lines
15       must be adjacent in order to be found; see sort(1).  If the -u flag  is
16       used,  just  the  lines  that are not repeated in the original file are
17       output.  The -d option specifies that one copy  of  just  the  repeated
18       lines  is to be written.  The normal mode output is the union of the -u
19       and -d mode outputs.
20
21       The -c option supersedes -u and -d and generates an  output  report  in
22       default  style  but with each line preceded by a count of the number of
23       times it occurred.
24
25       The n arguments specify skipping an initial portion of each line in the
26       comparison:
27
28       -n      The  first  n  fields  together with any blanks before each are
29               ignored.  A field is defined as a string of non-space,  non-tab
30               characters separated by tabs and spaces from its neighbors.
31
32       +n      The  first n characters are ignored.  Fields are skipped before
33               characters.
34

SEE ALSO

36       sort(1), comm(1)
37
38
39
40                                                                       UNIQ(1)
Impressum