How can I store the url-decoded string in a variable using shell script
#!/bin/sh
alias urldecode='python -c "import sys, urllib as ul;print ul.unquote_plus(sys.argv[1])"'
str="this+is+%2F+%2B+%2C+.+url+%23%24coded"
decoded = ${urldecode $str}
echo $decoded
I am trying to store decoded string in variable named decoded.