[ILUG] converting strings of hex to ascii
padraig.brady at corvil.com
Mon Aug 26 12:07:30 IST 2002
Paul Jakma wrote:
> can anyone think of an easy way to convert strings that describe
> ASCII chars in hex to plain ASCII?
> eg given
> is there an easy way to turn it into
> eg, whether by piping through some already available tool, or
> programmatically (printf? - but i dont see how.).
> want to avoid ascii lookup tables..
[padraig at pixelbeat padraig]$
[padraig at pixelbeat padraig]$ echo -e "`echo "$enc" | sed 's/%\([0-9]*\)/\\\x\1/g'`"
More information about the ILUG