Usage: grep [OPTION]... PATTERNS [FILE]...
Search for PATTERNS in each FILE (or standard input).
Example: grep -i 'xid' /var/log/syslog

Pattern selection and interpretation:
  -E, --extended-regexp     PATTERNS are extended regular expressions
  -F, --fixed-strings       PATTERNS are strings
  -e, --regexp=PATTERNS     use PATTERNS for matching (may be repeated)
  -i, --ignore-case         ignore case distinctions in patterns and data
  -w, --word-regexp         match only whole words

Miscellaneous:
  -v, --invert-match        select non-matching lines

Output control:
  -c, --count               print only a count of selected lines per FILE
  -l, --files-with-matches  print only names of FILEs with selected lines
  -n, --line-number         print line number with output lines
  -o, --only-matching       show only nonempty parts of lines that match
  -H, --with-filename       print file name with output lines
  -h, --no-filename         suppress the file name prefix on output

Context control:
  -B, --before-context=NUM  print NUM lines of leading context
  -A, --after-context=NUM   print NUM lines of trailing context
  -C, --context=NUM         print NUM lines of output context
      --help                display this help text and exit

Single-letter options can be combined, e.g. -in or -ivc.
When FILE is absent, grep reads standard input.
Exit status is 0 if any line is selected, 1 otherwise; 2 on error.

(GreenRay AIO simulates the options listed above.)
