使用vim打开对应文件,在vim的命令行状态使用如下命令进行替换:
:%s/old/new/g //%表示替换所有行,g表示替换当前行的匹配点
sed -i "s/old/new/g" `grep old -rl /xxx`