I know. People will say: "It is easy. Please read awk for dummies ".
But I didn't find a way to achieve what I wanted to do.
I create a text file containing hexa bytes with the following format:
3e 0d 6a 90.......
I would like to convert each byte in decimal (for instance 0d should be 13)
if I type
echo '0d' | awk '{x = "0x" + $1 ; print x}
I don't obtain any conversion What is the trick to apply?
10x
'
But I didn't find a way to achieve what I wanted to do.
I create a text file containing hexa bytes with the following format:
3e 0d 6a 90.......
I would like to convert each byte in decimal (for instance 0d should be 13)
if I type
echo '0d' | awk '{x = "0x" + $1 ; print x}
I don't obtain any conversion What is the trick to apply?
10x
'