in reply to Converting Hex String ASCII Char

You could try another search/replace using the built in chr() and hex() routines:
echo "41 42 43 44 45 46 47 48 49" | perl -ape 's/([0-9a-f]+)/chr(hex($ +1))/eg;'
Which should give you "A B C D E F G H I".

* - 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

    Since the OP is actually matching hex, the \d pattern won't work. You'll need to use [0-9a-f] instead.

      good catch kyle, I kind of whipped that one off the cuff just using his data. Thanks.

      ---
      s;;:<).>|\;\;_>?\\^0<|=!]=,|{\$/.'>|<?.|/"&?=#!>%\$|#/\$%{};;y;,'} -/:-@[-`{-};,'}`-{/" -;;s;;$_;see;
      Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.