grep, print lines matching a pattern. Node: Diagnostics

PREV Invoking UP Top NEXT Grep Programs

Chapter 3: Diagnostics

Normally, exit status is 0 if matches were found, and 1 if no matches were found (the `-v' option inverts the sense of the exit status). Exit status is 2 if there were syntax errors in the pattern, inaccessible input files, or other system errors.

PREV Invoking UP Top NEXT Grep Programs