Flags

The flags that are supported are a subset of those supported by the standard Unix grep and of course an even smaller subset of those supported by GNU grep:

-c Display only a count of matching lines.

-i Ignore case when making comparisons (same as -y).

-l (letter el) List just the names of files (once) with matching lines. Each file name is separated by a new-line character.

-n Preceed each line with the file name and line number, in the following default form: filename(line)

-# (where # is a digit from 0 through 9, inclusive): If the -n flag is also specified, then a specifying a digit will select a pattern to use when showing the file name, line number, and starting column. If no digit is specified, then 0 (zero) is assumed.

-s Descend subdirectories, also.

-v Display lines that don't contain the pattern.

-y Ignore case when making comparisons (compatible with the RS/6000).