I\'m using awk to urldecode some text.
awk
If I code the string into the printf statement like printf \"%s\", \"\\x3D\" it correct
printf
printf \"%s\", \"\\x3D\"
I don't know how you do this in awk, but it's trivial in perl:
echo "http://example.com/?q=foo%3Dbar" | perl -pe 's/\+/ /g; s/%([0-9a-f]{2})/chr(hex($1))/eig'