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
This commit is contained in:
YPCrumble
2016-12-22 07:21:22 -05:00
committed by Andrew Gallant
parent 8396d3ffaa
commit 900ef0abc7
3 changed files with 32 additions and 2 deletions

View File

@@ -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:
```