UNIQ.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:1k
- .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).