FGREP.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH FGREP 1
- .SH NAME
- fgrep - fixed grep
- .SH SYNOPSIS
- fBfgrepfR [fB-cfhlnsvfR]fR [fIstring_filefR] [fIstringfR] [fIfilefR] ...fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-c" "Count matching lines and only print count, not the lines"
- .FL "-f" "Take strings from file named in following argument"
- .FL "-h" "Omit file headers from printout"
- .FL "-l" "List file names once only"
- .FL "-n" "Each line is preceded by its line number"
- .FL "-s" "Status only, no output"
- .FL "-v" "Print only lines not matching"
- .SH EXAMPLES
- .EX "fgrep % prog.c" "Print lines containing % sign"
- .EX "fgrep -f pattern prog.c" "Take strings from fIpatternfR"
- .SH DESCRIPTION
- .PP
- fIFgrepfR is essentially the same as grep, except that it only searches
- for lines containing literal strings (no wildcard characters). The pattern
- may consist of several lines with one string to search on each line.
- .SH "SEE ALSO"
- .BR cgrep (1),
- .BR grep (1).