summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorYPCrumble <ipcampbell@gmail.com>2016-12-22 07:21:22 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-12-22 07:21:22 -0500
commit900ef0abc76c21697afa5c5a1a4f53f0a7d4ecc5 (patch)
tree7acbe4506a247de248c046c4a9833858d83e83da /README.md
parent8396d3ffaae3784880a6cef25775ba2abd9f4fcf (diff)
Update docs to explain use of -g and --files to search for paths. (#285)
Update docs to explain use of -g and --files to search for paths. Fixes #284
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index dee58f98..a7e0c01e 100644
--- a/README.md
+++ b/README.md
@@ -268,6 +268,12 @@ Or exclude files matching a particular glob:
$ rg foo -g '!*.min.js'
```
+Search and return paths matching a particular glob (i.e., `-g` flag in ag/ack):
+
+```
+$ rg -g 'doc*' --files
+```
+
Search only HTML and CSS files:
```