PWB1/usr/man/man1/fgrep.1

.th FGREP I 5/31/77
.sh NAME
fgrep \*- search a file for lines containing keywords
.sh SYNOPSIS
.bd fgrep
[
.bd \*-b
] [
.bd \*-c
] [
.bd \*-e
][
.bd \*-f
] [
.bd \*-n
] [
.bd \*-v
] pattern [ file ] ...
.sh DESCRIPTION
.it fgrep
searches the input files
(standard input default)
for all lines containing one or more
keywords denoted by
.it pattern.
Normally, each containing line
is copied to the standard output.
The \fBbcfnv\fP flags modify the normal behavior as in
.it egrep\c
(I).
The \fB\*-e\fP flag causes a match to occur if and only if a keyword
matches an input line exactly.
Without the \fB\*-f\fP flag,
.it pattern
can be only a single keyword.
With the \fB\*-f\fP flag,
.it pattern
is the name of a file containing
a sequence of keywords terminated by
newlines.
The keywords in this file then constitute
the search pattern.
A keyword is any string of characters
except '\\0' and newline.
No metacharacters are assumed.
.s3
.sh "SEE ALSO"
egrep(I)
.sh BUGS
Lines longer than 512 characters are not printed completely.