awk --non-decimal-data 'BEGIN {RS=" "} {x="0x"$0; printf("%d
", x)}'
0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 1F 20 FC FD FE FF
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 31 32 252 253 254 255
better ?
On Fri, 30 Jul 2004 18:26:12 -0700 (PDT), Dwight K. Elvey
<dwight.elvey(a)amd.com>
wrote:
...
I'm not sure this is what he is looking for. I
think
he wants the hex number converted to a byte value
not just printed in ascii as a binary value.
Dwight