ここは、インフラエンジニアの個人的な備忘録です。
function urlencode { echo "$1" \ | python -c 'import sys,urllib; sys.stdout.write(urllib.quote_plus(raw_input()))' } urlencode "xxxxx"