Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (g - j) grep(1)
7. To display all lines that contain uppercase characters, enter:
grep ’[[:upper:]]’ pgm.s
EXIT VALUES
The exit values of the grep command are as follows:
0 A match was found.
1 No match was found.
2 A syntax error was found or a file was inaccessible, even if matches were found.
RELATED INFORMATION
Commands: ed(1), sed(1), sh(1).
Files: locale(4).
527188-007 Hewlett-Packard Company 4−29