in reply to Converting Hex String ASCII Char
Which should give you "A B C D E F G H I".echo "41 42 43 44 45 46 47 48 49" | perl -ape 's/([0-9a-f]+)/chr(hex($ +1))/eg;'
* - modified the regex based on kyles observation (good catch)
---
s;;:<).>|\;\;_>?\\^0<|=!]=,|{\$/.'>|<?.|/"&?=#!>%\$|#/\$%{};;y;,'} -/:-@[-`{-};,'}`-{/" -;;s;;$_;see;
Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting Hex String ASCII Char
by kyle (Abbot) on Apr 30, 2008 at 17:44 UTC | |
by tuxz0r (Pilgrim) on Apr 30, 2008 at 18:25 UTC |