Skip to content

Instantly share code, notes, and snippets.

@garywill
Created January 9, 2025 14:38
Show Gist options
  • Select an option

  • Save garywill/9dd3e1071bd51983b4ce99400e9d78e1 to your computer and use it in GitHub Desktop.

Select an option

Save garywill/9dd3e1071bd51983b4ce99400e9d78e1 to your computer and use it in GitHub Desktop.
bash script decode URL string
#!/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