Trying to convert all the hex chars in a file to something I can read, from %61 to a for example
currently I have:
perl -i.bak -pe 's/\%([0-7][0-9-A-F])/char(hex($1))/g' <filename>
but this is just giving me a file with 'char(hex(61))' in place of '%61' instead of 'a'. Gotta be simple, but I can't for the life of me figure it out. Thanks.
In reply to Command Line Regex by ramblinpeck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |