我运行以下命令以查找并替换旧网址到新的网址。。在小牛上运行查找和sed后发生错误
find . -type f -print0 | xargs -0 sed -i \
's/http:\/\/www\.oldwebaddress\.com\/techblog/https:\/\/github\.com\/myname/g'
但是,我得到以下错误。
sed: 1: "./.DS_Store": invalid command code .
我在阅读Stack Overflow的一些帖子后尝试了这一个,但也没有工作。
find . -type f -print0 | xargs -0 sed -i "" \
's/http:\/\/www\.oldwebaddress\.com\/techblog/https:\/\/github\.com\/myname/g'
sed: RE error: illegal byte sequence
我在这里做错了什么?