Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
urldecode using bash as per http://stackoverflow.com/a/37840948/1510621
# usage: $ urldecode https%3A%2F%2Fgoogle.com%2Fsearch%3Fq%3Durldecode%2Bbash
# result: https://google.com/search?q=urldecode+bash
urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment