1
我一直在使用IFTTT(如果这样的话)通知我,只要有一些文档使用RSS提要上传到CMS,但CMS放入RSS提要的链接有空间,它会干扰IFTTT的自动链接缩短。例如:sed - 用另一个字符串替换两个字符串之间的字符
<div><b>Attachments:</b> <a href="http://blah.com/foo/bar/Important Announcement 5.doc">http://blah.com/foo/bar/Important Announcement 5.doc</a><br><a href=""></a></div>
让我这个在IFTTT通知:
Attachments: http://is.gd/abcdef Announcement 5.doc
我目前使用bash脚本重新宿主RSS提要,因为IFTTT无法通过身份验证的页面。我如何使用sed删除这两个字符串之间的空格?
这两个字符串?请包括输入 - >输出示例。 – hovanessyan
可能重复[用sed替换两个已知字符串之间的未知字符串](http://stackoverflow.com/questions/10613643/replace-a-unknown-string-between-two-known-strings-with-sed) – tripleee
Urlencoding您的输入将有助于:http://stackoverflow.com/questions/296536/urlencode-from-a-bash-script – Gregor