4.6. fgrep (Fixed grep or Fast grep)
The fgrep command behaves like grep, but does not recognize any regular expression metacharacters as being special. All characters represent only themselves. A caret is simply a caret, a dollar sign is a dollar sign, and so forth. (See GNU grep –F if using Linux.)
Example 4.36.
fgrep '[A-Z]****[0-9]..$5.00' file
EXPLANATION
Finds all lines in the file containing the literal string [A–Z]****[0–9]..$5.00. All characters are treated as themselves. There are no special characters.
|