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.
· 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’. · grep Programs ‘grep’ programs.