uniq.1 (994B)
1 .TH UNIQ 1 2 .SH NAME 3 uniq \- report repeated lines in a file 4 .SH SYNOPSIS 5 .B uniq 6 [ 7 .B -udc 8 [ 9 .BI +- num 10 ] 11 ] 12 [ 13 .I file 14 ] 15 .SH DESCRIPTION 16 .I Uniq 17 copies the input 18 .IR file , 19 or the standard input, to the 20 standard output, comparing adjacent lines. 21 In the normal case, the second and succeeding copies 22 of repeated lines are 23 removed. 24 Repeated lines must be adjacent 25 in order to be found. 26 .TP 27 .B -u 28 Print unique lines. 29 .TP 30 .B -d 31 Print (one copy of) duplicated lines. 32 .TP 33 .B -c 34 Prefix a repetition count and a tab to each output line. 35 Implies 36 .B -u 37 and 38 .BR -d . 39 .TP 40 .BI - num 41 The first 42 .IR num 43 fields 44 together with any blanks before each are ignored. 45 A field is defined as a string of non-space, non-tab characters 46 separated by tabs and spaces from its neighbors. 47 .TP 48 .BI + num 49 The first 50 .IR num 51 characters are ignored. 52 Fields are skipped before characters. 53 .SH SOURCE 54 .B \*9/src/cmd/uniq.c 55 .SH "SEE ALSO" 56 .IR sort (1) 57 .SH BUGS 58 Field selection and comparison should be compatible with 59 .IR sort (1).