Answers for "grep but exclude directory"

3

grep exclude directory

grep -rli --exclude-dir={dir1,dir2,dir3} keyword /path/to/search
Posted by: Guest on October-08-2020
1

grep but exclude directory

grep -rli --exclude-dir=/path/to/exclude "keyword"
Posted by: Guest on December-24-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language