grep --include=*.{<file extetions >} -rnw '<path>' -e "<pattren>" example: grep --include=*.{log} -rnw '.' -e "test"