Important Options
-r Recursive -i Case insensitive -v Invert match by showing lines that do not match -C <int> Show <int> number of lines before and after match
Search for regexp in every file in current directory
grep 'regexp' *
Search for regexp recursively and show three lines before and after
grep -r -C 3 'regexp' *
There was an error while loading. Please reload this page.