Home

grep

Useful alias set up

Look in shell aliases

Command-line options (flags) I find useful

  • -irn:
  • -v:

Examples

Search only the current directory:

grep “string**

???

OPTIONS

  • Pattern Syntax
    • -E, --extended-regexp: Interpret PATTERNS as extended regular expressions (EREs, see below).
grep -E PATTERN

Basic vs Extended Regular Expressions:

  • In basic regular expressions the meta-characters ?, +, {, |, (, and ) lose their special meaning; instead use the backslashed versions ?, +, {, |, (, and ).

Date:

Screen Dimensions