1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 18:26:00 +02:00

rg: update title to match page name; improve examples (#5091)

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
This commit is contained in:
bl-ue 2021-01-06 11:54:01 -05:00 committed by GitHub
parent 14521d4a88
commit f75ef6661f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
# ripgrep # rg
> A recursive line-oriented CLI search tool. > Ripgrep is a recursive line-oriented CLI search tool.
> Aims to be a faster alternative to `grep`. > Aims to be a faster alternative to `grep`.
> More information: <https://github.com/BurntSushi/ripgrep>. > More information: <https://github.com/BurntSushi/ripgrep>.
@ -10,11 +10,11 @@
- Search for pattern including all .gitignored and hidden files: - Search for pattern including all .gitignored and hidden files:
`rg -uu {{pattern}}` `rg --no-ignore --hidden {{pattern}}`
- Search for a pattern only in a certain filetype (e.g., html, css, etc.): - Search for a pattern only in a certain filetype (e.g., html, css, etc.):
`rg -t {{filetype}} {{pattern}}` `rg --type {{filetype}} {{pattern}}`
- Search for a pattern only in a subset of directories: - Search for a pattern only in a subset of directories:
@ -22,7 +22,7 @@
- Search for a pattern in files matching a glob (e.g., `README.*`): - Search for a pattern in files matching a glob (e.g., `README.*`):
`rg {{pattern}} -g {{glob}}` `rg {{pattern}} --glob {{glob}}`
- Only list matched files (useful when piping to other commands): - Only list matched files (useful when piping to other commands):
@ -34,4 +34,4 @@
- Search a literal string pattern: - Search a literal string pattern:
`rg -F {{string}}` `rg --fixed-strings {{string}}`