Last active
December 18, 2015 14:38
-
-
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)
This file contains hidden or 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 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