Skip to Content
gnux

--exclude-dir

Skip directories that match GLOB.

An option of grepx.

Usage

grepx --exclude-dir=GLOB PATTERNS [FILE]...

Details

ShortLongValueDefaultMeaning
--exclude-dirGLOBskip 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

On this page