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.
|• Command-line Options:||Short and long names, grouped by category.|
|• Environment Variables:||POSIX, GNU generic, and GNU grep specific.|
|• Exit Status:||Exit status returned by |
|• grep Programs:|