grep multiple exclude dir code example Example: grep exclude multi dirs grep -inRw -E 'direct' . --exclude-dir={git,log,assets}