> shell编程 >

shell批量替换多文件字符串


sed -i "s/show(4)/show(6)/g" `grep "show(4)" -rl  ./ | grep -v '.svn/*'`

其中show(4)是目标字符串,show(6)是想要替换成的字符串


(责任编辑:IT)