Bash|批量替换文件里的字符串

原创
2022/10/25 10:19
阅读数 89

批量替换文件中的字符串

在linux里使用findsed替换内容。

find . -type f -name index.html|xargs sed -i 's/https:\/\/imgkr\.cn-bj\.ufileos\.com\/b8dd3f79-f3a5-4516-8a2e-9d073e246575\.png/https:\/\/www.example.net\/Public\/App\/images\/sm-logo-global.png/'
展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部