uniq.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 71 行

1
71
字号
.\" SCCSID: @(#)uniq.1	8.1	9/11/90.TH uniq 1 .SH Nameuniq \- report repeated lines in a file.SH Syntax.B uniq[\fB\-udc\fR\|[\fB\+n\fR]\|[\fB\-n\fR]\|] [\fI\|input\fR\|[\fIoutput\fR\|]\|].SH Description.NXR "uniq command".NXA "uniq command" "sccsdiff command".NXA "uniq command" "diff3 command".NXA "uniq command" "diffmk command".NXA "uniq command" "diff command".NXA "uniq command" "comm command".NXA "uniq command" "cmp command".NXA "uniq command" "join command".NXR "file" "comparing"The.PN uniqcommand reads the input file comparing adjacent lines.In the normal case,the second and succeeding copies of repeated lines areremoved; the remainder is written on the output file.Note that repeated lines must be adjacent in order to be found. For further information, see .MS sort 1 ..SH Options.PPThe.I narguments specify skipping an initial portionof each line in the comparison:.IP \fB\-\fIn\fR 0.3iSkips specified number of fields.  A field is defined as a string of non-space, non-tab charactersseparated by tabs and spaces from its neighbors..IP \fB\+\fIn\fR 0.3iSkips specified number of characters in addition to fields.  Fields are skipped before characters..IP \fB\-c\fR 0.3iDisplays number of repetitions, if any, for each line.  .IP \fB\-d\fR 0.3iDisplays only lines that were repeated.  .IP \fB\-u\fR 0.3iDisplays only unique (nonrepeated) lines.  .PPIf the.B \-uflag is used, just the lines that are not repeatedin the original file are output.  The.B \-doption specifies that one copy ofjust the repeated lines is to be written.The normal mode output is the union of the.B \-uand.B \-dmode outputs..PPThe.B \-coption supersedes.B \-uand.B \-dand generates an output report in default stylebut with each line preceded by acount of the number of times it occurred..SH See Alsocomm(1), sort(1)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?