Go to the first, previous, next, last section, table of contents.


@command{grep} programs

@command{grep} searches the named input files (or standard input if no files are named, or the file name `-' is given) for lines containing a match to the given pattern. By default, @command{grep} prints the matching lines. There are three major variants of @command{grep}, controlled by the following options.

`-G'
`--basic-regexp'
Interpret pattern as a basic regular expression. This is the default.
`-E'
`--extended-regexp'
Interpret pattern as an extended regular expression.
`-F'
`--fixed-strings'
Interpret pattern as a list of fixed strings, separated by newlines, any of which is to be matched.

In addition, two variant programs EGREP and FGREP are available. EGREP is the same as `grep -E'. FGREP is the same as `grep -F'.


Go to the first, previous, next, last section, table of contents.