批量修改完整版本

1。备份

grep 'search/search.php' * -Rl|grep cpp|xargs -i cp --parents   {}  ./0128/

cp -R 0128 0128_new

2。修改

sed -i "s/10.11.2.177/sphinxweb/g" `grep "10.11.2.177" -rl  ~`

注意,别修改了备份的文件哦

原文地址:https://www.cnblogs.com/gaohuag/p/2880302.html