grep -r --include=*.{cc,h} "hello" .
This reads: search recursively (in all sub directories also) for all .cc OR .h files that contain “hello” at this . (current) directory
From another stackoverflow question
grep -r --include=*.{cc,h} "hello" .
This reads: search recursively (in all sub directories also) for all .cc OR .h files that contain “hello” at this . (current) directory
From another stackoverflow question