設定
$ 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])"'
使用$ urlencode 'file:///media/bob/MyUSB/我的資料夾'
file%3A%2F%2F%2Fmedia%2Fbob%2FMyUSB%2F%E6%88%91%E7%9A%84%E8%B3%87%E6%96%99%E5%A4%BE
0 意見:
張貼留言