Post published:11/12/2013 Post category:Linux general issues This is how you can check for a string in a php file grep -lr --include=*.php "string" /home 1 grep -lr --include=*.php "string" /home or a txt file grep -lr --include=*.txt "string" /home 1 grep -lr --include=*.txt "string" /home