cd 到目的目录sed -i "s/查找的内容/替换后的内容/g" `grep -rl "查找的内容" ./`参考来源:https://www.cnblogs.com/aqicheng/p/11446791.html