Created
January 9, 2025 14:38
-
-
Save garywill/9dd3e1071bd51983b4ce99400e9d78e1 to your computer and use it in GitHub Desktop.
bash script decode URL string
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
| #!/bin/bash | |
| urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; } | |
| urldecode $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment