日期:2014-05-16  浏览次数:20509 次

linux 替换 sed
Linux批量替换多个文件中字符串


http://www.phpq.net/linux/linux-replace-multi-file-string.html
本篇文章来源于 PHP资讯 原文链接:http://www.phpq.net/linux/linux-replace-multi-file-string.html


sed -i "s/原字符串/新字符串/g" `grep 原字符串 -rl 所在目录`
本篇文章来源于 PHP资讯 原文链接:http://www.phpq.net/linux/linux-replace-multi-file-string.html