MPE/iX Shell and Utilities Reference Manual, Vol 1

grep(1) MPE/iX Shell and Utilities grep(1)
–i ignores the case of the strings being matched.
–l lists only the file names that contain the matching lines.
–n precedes each matched line with its file line number.
–q suppresses output and simply returns appropriate return code.
–s suppresses the display of any error messages for nonexistent or unreadable files.
–v complements the sense of the match; that is, displays all lines not matching a pattern.
–x requires a string to match an entire line.
EXAMPLES
To display every line mentioning an astrological element:
egrep "earth|air|fire|water" astro.log
DIAGNOSTICS
Possible exit status values are:
0 The command found at least one match for pattern.
1 The command found no matches for pattern.
2 An error occurred.
If the program fails to open one input file, it tries to go on to look at any remaining
input files, but it returns 2 even if it succeeds in finding matches in other input files.
Messages
Message: input file "filename": system error
Cause: See syserror(3).
Action: See syserror(3).
Message: Missing -e pattern
Cause: You specified the –e option but did not provide a pattern with it.
Action: Provide a pattern following the –e option.
Message: Missing -f file
Cause: You specified the –f option but did not provide a file with it.
Action: Provide a file following the –f.
Message: no room for buffers
Cause: There were not enough free system resources for grep to allocate the buffers
that it requires.
Action: Free up more system resources.
1-260 Commands and Utilities