mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
rgrep: add page (#7021)
This commit is contained in:
parent
4d8a5b4dab
commit
0487555a60
1 changed files with 25 additions and 0 deletions
25
pages/linux/rgrep.md
Normal file
25
pages/linux/rgrep.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# rgrep
|
||||
|
||||
> Recursively find patterns in files using regular expressions.
|
||||
> Equivalent to `grep -r`.
|
||||
> More information: <https://www.gnu.org/software/grep/manual/grep.html>.
|
||||
|
||||
- Recursively search for a pattern in the current working directory:
|
||||
|
||||
`rgrep "{{search_pattern}}"`
|
||||
|
||||
- Recursively search for a case-insensitive pattern in the current working directory:
|
||||
|
||||
`rgrep --ignore-case "{{search_pattern}}"`
|
||||
|
||||
- Recursively search for an extended regular expression pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory:
|
||||
|
||||
`rgrep --extended-regexp "{{search_pattern}}"`
|
||||
|
||||
- Recursively search for an exact string (disables regular expressions) in the current working directory:
|
||||
|
||||
`rgrep --fixed-strings "{{exact_string}}"`
|
||||
|
||||
- Recursively search for a pattern in a specified directory (or file):
|
||||
|
||||
`rgrep "{{search_pattern}}" {{path/to/file_or_directory}}`
|
Loading…
Add table
Reference in a new issue