Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Recursively find patterns in files using regular expressions.
> Equivalent to `grep -r`.
> More information: <https://www.gnu.org/software/grep/manual/grep.html>.
> More information: <https://www.gnu.org/software/grep/manual/grep.html#Command_002dline-Options>.
- Recursively search for a pattern in the current working directory:
@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
- Recursively search for a case-insensitive pattern in the current working directory:
`rgrep --ignore-case "{{search_pattern}}"`
`rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"`
- Recursively search for an extended regular expression pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory:
`rgrep --extended-regexp "{{search_pattern}}"`
`rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"`
- Recursively search for an exact string (disables regular expressions) in the current working directory:
`rgrep --fixed-strings "{{exact_string}}"`
`rgrep {{[-F|--fixed-strings]}} "{{exact_string}}"`
- Recursively search for a pattern in a specified directory (or file):