--exclude-dir
Skip directories that match GLOB.
An option of grepx.
Usage
grepx --exclude-dir=GLOB PATTERNS [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--exclude-dir | GLOB | skip directories that match GLOB |
Examples
Search a tree but skip the dependency and VCS directories
grepx -rn --exclude-dir=node_modules --exclude-dir=.git 'fetch(' .Help in the terminal
gnux help grepx --exclude-dir