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