Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

30
rgrep Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`