shell批量替换多文件字符串
时间:2014-11-30 15:29 来源:linux.it.net.cn 作者:IT
sed -i "s/show(4)/show(6)/g" `grep "show(4)" -rl ./ | grep -v '.svn/*'`
其中show(4)是目标字符串,show(6)是想要替换成的字符串
(责任编辑:IT)
sed -i "s/show(4)/show(6)/g" `grep "show(4)" -rl ./ | grep -v '.svn/*'` 其中show(4)是目标字符串,show(6)是想要替换成的字符串 (责任编辑:IT) |