Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v6

uniq(1)



uniq report repeated lines in a file [ [ +n ] [ n ] ] [ input [ output ] ] reads the input file comparing adjacent lines. In the normal case, the second and succeeding copies of repeated lines are removed; the remainder is written on the output file. Note that repeated lines must be adjacent in order to be found; see sort(I). If the flag is used, just the lines that are not repeated in the original file are output. The option specifies that one copy of just the repeated lines is to be written. The normal mode output is the union of the and mode outputs. The option supersedes and and generates an output report in default style but with each line preceded by a count of the number of times it occurred. The arguments specify skipping an initial portion of each line in the comparison: n The first n fields together with any blanks before each are ignored. A field is defined as a string of non-space, non-tab characters separated by tabs and spaces from its neighbors. +n The first n characters are ignored. Fields are skipped before characters. sort (I), comm (I)



uniq(1)