mirror of https://github.com/CrimsonTome/tldr.git
rg: Only list matched files (#2302)
parent
73f0750f90
commit
d1377d62c1
|
@ -21,3 +21,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}} -g {{glob}}`
|
||||||
|
|
||||||
|
- Only list matched files -- useful when piping to other commands:
|
||||||
|
|
||||||
|
`rg --files-with-matches {{pattern}}`
|
||||||
|
|
Loading…
Reference in New Issue