CGREP.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:1k
- .TH CGREP 1
- .SH NAME
- cgrep - grep and display context
- .SH SYNOPSIS
- fBcgrepfR [fB-a fInfR]fR [fB-b fInfR] [fB-ffR] [fB-l fInfR] [fB-nfR] [fB-w fInfR] fIpatternfR [fIfilefR] ...fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-a" "How many lines to display after the matching line"
- .FL "-b" "How many lines to display before the matching line"
- .FL "-f" "Suppress file name in the output"
- .FL "-l" "Lines are truncated to this length before comparison"
- .FL "-n" "Suppress line numbers in the output"
- .FL "-w" "Sets window size (same as fB-afR n fB-bfR n)"
- .SH EXAMPLES
- .EX "cgrep -w 3 hello file1" "Print 3 lines of context each way"
- .SH DESCRIPTION
- .PP
- fICgrepfR is a program like fIgrepfR, except that it also can print
- a few lines above and/or below the matching lines.
- It also prints the line numbers of the output.
- .SH "SEE ALSO"
- .BR grep (1),
- .BR fgrep (1).