shell 中 编码转换

root@bt:~# echo I am sincoder | hexdump -C
00000000  49 20 61 6d 20 73 69 6e  63 6f 64 65 72 0a        |I am sincoder.|
0000000e
root@bt:~# echo $'\x49'
I
root@bt:~# echo $'\x49\x20\x61\x6d\x20\x73\x69\x6e63 6f 64 65 72 0a'
I am sin63 6f 64 65 72 0a
root@bt:~# echo $'\x49\x20\x61\x6d\x20\x73\x69\x6e\x63\x6f\x64\x65\x72\x0a'
I am sincoder

你可能感兴趣的:(shell 中 编码转换)