Usage

grep [ -flags ] [ -- ] "pattern" [ fspec ... ]


The grep command searches for the specified pattern. It writes each line that contains the pattern to standard output. The pattern is a regular expression as described later in this document.

One or more file specifications may be present on the command line. If no file specifications are present, then grep reads lines from standard input.

A file specification consists of an optional drive, optional path information, and a filename. The filename may consist of Bourne shell pattern-matching characters.

Binary files (such as *.obj and *.exe) can be searched in addition to text files.