【发布时间】:2014-08-04 04:25:31
【问题描述】:
我有一个域
https://account.oldomain.com
我现在迁移到一个新域
https://account.newdomain.com
我想用 account.newdomain.com 替换所有出现的 account.olddomain.com
我该怎么做
我知道我可以使用类似的东西
sed -i 's/account.oldomain.com/account.newdomain.com/g' /hello
但是 sed: 无法编辑 /hello: 不是常规文件
如何替换当前目录中的所有文件,以及它的目录,目录的子目录,就像在当前文件夹的所有文件和文件夹中一样
with containing the text account.oldomain.com with account.newdomain.com
谢谢!!
【问题讨论】: