Bash-URL-decode

From I Will Fear No Evil
Revision as of 08:49, 15 August 2022 by Chubbard (talk | contribs) (Created page with "=== URL decode in bash === <pre> #!/bin/bash function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; } urldecode "$(cat $1)" </pre> [https://stackoverflow.com/questions/6...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

URL decode in bash

#!/bin/bash
function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
urldecode "$(cat $1)"

overflow source and details