Search one or more files for lines that
match a regular expression regexp. egrep doesn't support the metacharacters
\>, but does support the
other metacharacters, as well as the extended set
(). Remember to enclose these characters
in quotes. Regular expressions are described in Chapter 7. Exit status is 0 if any
lines match, 1 if not, and 2 for errors. See also grep and fgrep.
does not support
\}. Mac OS X and GNU/Linux use
Print only a count of matched lines.
Use this if regexp begins with
Take expression from file. Multiple expressions may be provided, one per line, in which case any of them may match.
Ignore uppercase and lowercase distinctions.
Do not print the names of matching files, just the matched lines.
List filenames but not matched lines.
Print lines and their line numbers.
Silent mode: print only error messages, and return the exit status.
Print all lines that don't match regexp.
Select only those matches that exactly match the whole
/usr/xpg4/bin/egrep on Solaris,
Treat a binary file as text. Same as
Print count lines of trailing context. ...