grep all files in directory and subdirectories for a string in a specific file type code example Example: grep only in php files grep -r -i --include=\*.php 'searchterm' ./