如何使用bash命令批量格式URL?
我在下面的降级格式中有许多链接:
[link desc1](http://1goo.....com)
[link desc2](http://2goo.....com)
[link desc3](http://3goo.....com)
[link desc4](http://4goo.....com)
...
下面是我所需的输出,删除[]和()仅保留链接,
http://1goo.....com
http://2goo.....com
http://3goo.....com
http://4goo.....com
...
我只想保存链接,非常感谢。
I have many links in markdown format like this below:
[link desc1](http://1goo.....com)
[link desc2](http://2goo.....com)
[link desc3](http://3goo.....com)
[link desc4](http://4goo.....com)
...
below is my desired output, remove[] and () just remain links
http://1goo.....com
http://2goo.....com
http://3goo.....com
http://4goo.....com
...
I just want to save the link,thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您只想获取URL,并且所有这些信息都包含在名为urls.txt的文件中,那么您想尝试这样的SED:
BR
向
Assuming you only want to get the URL and all that info is contained in a file named urls.txt, then you'd like to try sed like this:
BR
Regards