grep regex files- regex is a regular expression
- Options
-r, R: recurse down directories-i: ignore case. Matches will be “case insensitive”-v: inver the match-c: only show the count of matching lines-n: also show the line number of each match-w: match pattern on “word” boundariesgrep -w cat files # will not match "vacation"
Advertisement