diff --git a/pages/common/rg.md b/pages/common/rg.md index 20c2d26ff..e469d34e5 100644 --- a/pages/common/rg.md +++ b/pages/common/rg.md @@ -21,3 +21,7 @@ - Search for a pattern in files matching a glob (e.g., `README.*`): `rg {{pattern}} -g {{glob}}` + +- Only list matched files -- useful when piping to other commands: + +`rg --files-with-matches {{pattern}}`