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