CGREP.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .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).