UNIQ.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH UNIQ 1
- .SH NAME
- uniq - delete consecutive identical lines in a file
- .SH SYNOPSIS
- fBuniqfR [fB-cdufR]fR [fB-fInfR] [fB+fInfR] [fIinput [fIoutputfR]fR]fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-c" "Give count of identical lines in the input"
- .FL "-d" "Only duplicate lines are written to output"
- .FL "-u" "Only unique lines are written to output"
- .FL "-fInfR" "Skip the first fInfR columns when matching"
- .FL "+fInfR" "Skip the first fInfR fields when matching"
- .SH EXAMPLES
- .EX "uniq +2 file" "Ignore first 2 fields when comparing"
- .EX "uniq -d inf outf" "Write duplicate lines to fIoutffP"
- .SH DESCRIPTION
- .PP
- .I Uniq
- examines a file for consecutive lines that are identical.
- All but duplicate entries are deleted, and the file is written to output.
- The +fInfR option skips the first fInfR fields, where a field is defined
- as a run of characters separated by white space.
- The -fInfP option skips the first fInfR spaces.
- Fields are skipped first.
- .SH "SEE ALSO"
- .BR sort (1).