mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
add file include/exclude example
This commit is contained in:
parent
33231622f3
commit
665b6016e3
@ -228,6 +228,20 @@ with other search tools!):
|
|||||||
$ rg '(\p{Lu}\p{Ll}+)\s+(\p{Lu}\p{Ll}+)' --replace '$2, $1'
|
$ 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:
|
Search only HTML and CSS files:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user