查询所有php文件中含有相应语句

find /home/wwwroot/ -name "*.php" | xargs grep 'file_get_contents'

原文地址:https://www.cnblogs.com/yubestman/p/4241832.html