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

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
translation-badges
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
1 changed files with 6 additions and 6 deletions

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`.
> 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}}`