Grep only certain files

$ grep -ir --include pom.xml "<java.version>"

Refer: https://stackoverflow.com/questions/12516937/grep-but-only-certain-file-extensions

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

Leave a Reply