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

猜你喜欢

转载自zhrglchp.iteye.com/blog/1544158