grep, print lines matching a pattern - 3. Diagnostics

Go to the first, previous, next, last section, table of contents.

# 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.

Go to the first, previous, next, last section, table of contents.