我想使用这样的sed更改html文件中的所有链接
s/ <a[^>]* href="[^"]*\// <a href="\http:\/\/www.someurl.com\//g
Run Code Online (Sandbox Code Playgroud)
但它不起作用.
我的链接:
<a href="http://www.mylink.com/help/rss.php" target="_top" title="RSS">RSS</a></div>
Run Code Online (Sandbox Code Playgroud)
我的脚本只将mylink.com/help/rss.php更改为someurl.com/help/rss.php
我需要改为someurl.com