Browse Source

rg: Only list matched files (#2302)

Sam Stites 6 years ago
parent
commit
d1377d62c1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/common/rg.md

+ 4 - 0
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}}`