Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Note that echo "$URL" | sed 's/ /%20/' won't do the right thing if there are % characters in the URL. Also, spaces are normally encoded as + (and + as %2b). I recommend the Perl solution, which is reliable. Commented Aug 14, 2013 at 22:02
  • 2
    sed 's/ /%20/g' if you have more than one space to translate... Commented Feb 6, 2015 at 14:45
  • Note I had to install the Perl URI::Escape module. Commented Aug 21, 2018 at 17:48