Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-13 00:20:51 +00:00
parent 2c1898f6e4
commit 489b2e0e99
106 changed files with 322 additions and 306 deletions

View File

@@ -5,26 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# rgrep
> Recursively find patterns in files using `regex`.
> Equivalent to `grep -r`.
> More information: <https://www.gnu.org/software/grep/manual/grep.html#Command_002dline-Options>.
> This command is an alias of `grep --recursive`.
- Recursively search for a pattern in the current working directory:
- View documentation for the original command:
`rgrep "{{search_pattern}}"`
- Recursively search for a case-insensitive pattern in the current working directory:
`rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"`
- Recursively search for an extended `regex` pattern (supports `?`, `+`, `{}`, `()`, and `|`) in the current working directory:
`rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"`
- Recursively search for an exact string (disables `regex`) in the current working directory:
`rgrep {{[-F|--fixed-strings]}} "{{exact_string}}"`
- Recursively search for a pattern in a specified directory (or file):
`rgrep "{{search_pattern}}" {{path/to/file_or_directory}}`
`tldr grep`