1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-09 03:53:33 +02:00

rg: add page (#1146)

This commit is contained in:
kalebo 2016-11-02 21:42:23 -06:00 committed by Agniva De Sarker
parent dc085927c6
commit 6d109e5a66

23
pages/common/rg.md Normal file
View file

@ -0,0 +1,23 @@
# ripgrep
> A fast command-line search tool.
- Recursively search the current directory for a regex pattern:
`rg {{pattern}}`
- Search for pattern including all .gitignored and hidden files:
`rg -uu {{pattern}}`
- Search for a pattern only in a certain filetype (e.g., html, css, etc.):
`rg -t {{filetype}} {{pattern}}`
- Search for a pattern only in a subset of directories:
`rg {{pattern}} {{set_of_subdirs}}`
- Search for a pattern in files matching a glob (e.g., `README.*`):
`rg {{pattern}} -g {{glob}}`