grep in directory code example
Example 1: grep exclude directory
grep -rli --exclude-dir={dir1,dir2,dir3} keyword /path/to/search
Example 2: grep in folder
grep -nr 'yourString*' .
grep -rli --exclude-dir={dir1,dir2,dir3} keyword /path/to/search
grep -nr 'yourString*' .