I'm trying to search for a word/phrase within all the php files and all sub-directories where the command is run from. I'm using ssh with root access.
find . -type f -name \*php|xargs grep -i yourword
-noption will print the line numbers of where the matches were found - Marc B 2012-04-04 21:37