[clug] Command line (Bash) URL encoding & decode. Both easy and hard

Andrew Janke a.janke at gmail.com
Mon Dec 1 15:25:36 MST 2014


$ sudo apt-get install gridsite-clients

$ urlencode ...

I will admit your way looks far more fun.


a




On 2 December 2014 at 07:31, steve jenkin <sjenkin at canb.auug.org.au> wrote:
> Turns out _decoding_ URL  strings is easy, handled with variable substitution and 'echo -e' or 'printf' [1st example] (e.g. '%20' is space, the hexadecimal value of its ASCII code)
>
> Encoding, not so easy, there isn't a 'printf' option.


More information about the linux mailing list