grep -r all the time to find occurrences of a string within files in a given directory:
But what if I want to recursively search through more than one subdirectory of my current directory? The only way I can think of is to run grep twice:
How can I combine the above two
grep commans into a single line? I don't want to search through every single file in
--exclude-dir isn't practical because there are too many other directories under
. for me to explicitly exclude them all.
Is this possible?