我对正则表达式和 sed/awk 脚本不是很有经验。
我有类似于以下 torrent url 的 url:
http://torcache.net/torrent/D7249CD9AF321C8578B3A7007ABBDD63B0475EEB.torrent?title=[kickass.to]against.the.ropes.by.carly.fall.epub.torrent
我想让sed或awk脚本在标题之后提取文本,即从上面的示例中获取:
[kickass.to]反对.the.ropes.by.carly.fall.epub.torrent