Skip to content

Instantly share code, notes, and snippets.

@fstamour
Last active December 18, 2015 14:38
Show Gist options
  • Select an option

  • Save fstamour/5798220 to your computer and use it in GitHub Desktop.

Select an option

Save fstamour/5798220 to your computer and use it in GitHub Desktop.
Shell Function to decode URI (i.e. replace %xx with the character with xx as hexadecimal code)
function uriDecode() {
#Usage echo Some%URI | uriDecode
echo -e "$(sed 's/%/\\x/g' <&0)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment