mirror of https://github.com/CrimsonTome/tldr.git
rg: update title to match page name; improve examples (#5091)
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>translation-badges
parent
14521d4a88
commit
f75ef6661f
|
@ -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`.
|
||||
> More information: <https://github.com/BurntSushi/ripgrep>.
|
||||
|
||||
|
@ -10,11 +10,11 @@
|
|||
|
||||
- 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.):
|
||||
|
||||
`rg -t {{filetype}} {{pattern}}`
|
||||
`rg --type {{filetype}} {{pattern}}`
|
||||
|
||||
- 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.*`):
|
||||
|
||||
`rg {{pattern}} -g {{glob}}`
|
||||
`rg {{pattern}} --glob {{glob}}`
|
||||
|
||||
- Only list matched files (useful when piping to other commands):
|
||||
|
||||
|
@ -34,4 +34,4 @@
|
|||
|
||||
- Search a literal string pattern:
|
||||
|
||||
`rg -F {{string}}`
|
||||
`rg --fixed-strings {{string}}`
|
||||
|
|
Loading…
Reference in New Issue