Grep Exclude Folders Posted Jun 26, 2024 By your_full_name 1 min readOnly works for base directory name: 1 grep --exclude-dir={dir1,dir2} 1 grep --exclude-dir="src/java/main" programming shell This post is licensed under CC BY 4.0 by the author. Share