[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2. Invoking grep
The general synopsis of the grep
command line is
grep options pattern input_file_names |
There can be zero or more options. pattern will only be seen as such (and not as an input_file_name) if it wasn’t already specified within options (by using the ‘-e pattern’ or ‘-f file’ options). There can be zero or more input_file_names.
2.1 Command-line Options | Short and long names, grouped by category. | |
2.2 Environment Variables | POSIX, GNU generic, and GNU grep specific. | |
2.3 Exit Status | Exit status returned by grep .
| |
2.4 grep Programs | grep programs.
|