linux查找包含某个字符的文件并导出文件名

find ./ -name "*" | xargs grep -l "字符串"  > 1.txt

原文地址:https://www.cnblogs.com/beili/p/9125821.html