Created
July 22, 2019 05:25
-
-
Save kobachi/34f0d271c776f7c524ba4f297b94fdc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function urlencode { | |
t=$(echo "$1" | nkf -WwMQ | sed 's/=$//g' | tr = % | tr -d '\n') | |
echo ${t//\%2F/\/} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment