rgrep Command Examples

Recursively find patterns in files using regular expressions. Equivalent to grep -r. More information: https://www.gnu.org/software/grep/manual/grep.html#Command_002dline-Options.

rgrep "{{search_pattern}}"

rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"

rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"

rgrep {{[-F|--fixed-strings]}} "{{exact_string}}"

rgrep "{{search_pattern}}" {{path/to/file_or_directory}}