linux 批量替换内容

sed -i "s/被替换的内容/替换的内容/g" `grep "被替换的内容" -rl 目录`

-r = 搜索下级目录

原文地址:https://www.cnblogs.com/cnsanshao/p/3275098.html