ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.
One of a set of tools we're offering as a way to say thank you for being a part of the community.
find /directory -type f -name "*.php" -user userid -group groupid
find /directory -type f -name "*.php" -user userid -group groupid | xargs grep -l "search string"