How to grep recursively, but only in files with certain extensions? - Stack Overflow

PHOTO EMBED

Tue Apr 20 2021 16:20:26 GMT+0000 (Coordinated Universal Time)

Saved by @markefontenot

grep -inr --include \*.h --include \*.cpp CP_Image ~/path[12345] | mailx -s GREP email@domain.com
content_copyCOPY

https://stackoverflow.com/questions/12516937/how-to-grep-recursively-but-only-in-files-with-certain-extensions