I'm now doing it this way:
[root@~]# echo Aa|hexdump -v
0000000 6141 000a
0000003
[root@~]# echo -e "\x41\x41\x41\x41"
AAAA
But it's not exactly behaving as I wanted,
the hex form of Aa
should be 4161
,but the output is 6141 000a
,which seems not making sense.
and when performing hex to ascii,is there another utility so that I don't need the prefix \x
?