Post

Grep Exclude Folders

Only works for base directory name:

1
grep --exclude-dir={dir1,dir2}
1
grep --exclude-dir="src/java/main"
This post is licensed under CC BY 4.0 by the author.