sed如何删除html代码里某个类名为什么的div的全部内容?

sed如何删除html代码里某个类名为什么的div的全部内容?,第1张

sed '/<div class="app-companyTopBar ".*>/d' urfile

如果符合要求 在sed 后边加个 -i 参数就可以直接 *** 作urfile文件。

删错概不负责

sed -e 's/color/COLOR/g' -e "s/COLOR=/color=/g" test.txt

you select some text with no COLOR ,

and change the <font color=red>COLOR</font>to white.


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/7317534.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-04
下一篇 2023-04-04

发表评论

登录后才能评论

评论列表(0条)

保存