btorresgil
5/31/2019 - 4:26 PM

URLEncode on CLI with python

URLEncode on CLI with python

alias urldecode='python -c "import sys, urllib as ul; \
    print ul.unquote_plus(sys.argv[1])"'
alias urlencode='python -c "import sys, urllib as ul; \
    print ul.quote_plus(sys.argv[1])"'