grep -r yourstr ./ 举例: grep -r sprintf ./ (在当前目录下递归查找含有字符串sprintf的文件) 转载于:https://www.cnblogs.com/dakewei/p/7569781.html