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\"
GNU awk
#!/usr/bin/awk -fn @include "ord" BEGIN { RS = "%.." } { printf RT ? $0 chr("0x" substr(RT, 2)) : $0 }
Or
#!/bin/sh awk -niord '{printf RT?$0chr("0x"substr(RT,2)):$0}' RS=%..
Decoding URL encoding (percent encoding)