CLI |> Exclude Directories in grep



IF YOU JUST SOLVED SOME PROBLEM, WELCOME TO DM qaRabbit ON TWITTER, OR CREATE A PULL REQUEST IN GITHUB REPO.

grep -R --exclude-dir={node_modules,dir1,dir2,dir3} 'some pattern' /path/to/search

Reference: