summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-18 18:18:01 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-18 18:18:01 -0400
commit665b6016e31ee0cf965aba6b8c697240109d30a5 (patch)
treeb86acf8fc73afa4a050d53ab65836800d2376981
parent33231622f395a4ad9163392ad435a1f465cedad1 (diff)
add file include/exclude example
-rw-r--r--README-NEW.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README-NEW.md b/README-NEW.md
index f8bc722d..424f23b4 100644
--- a/README-NEW.md
+++ b/README-NEW.md
@@ -228,6 +228,20 @@ with other search tools!):
$ rg '(\p{Lu}\p{Ll}+)\s+(\p{Lu}\p{Ll}+)' --replace '$2, $1'
```
+Search only files matching a particular glob:
+
+```
+$ rg foo -g 'README.*'
+```
+
+<!--*-->
+
+Or exclude files matching a particular glob:
+
+```
+$ rg foo -g '!*.min.js'
+```
+
Search only HTML and CSS files:
```