find ./ -name "*.php" | xargs grep '要查找的内容'如果需要查找的内容包含特殊符号,比如$等等,grep要加参数find ./ -name "*.php" | xargs grep -F '要查找的内容'