如何使用hd从hexdump获取ascii?


1

我有这个hexdump:

0100 0000 3f00 0000 0a59 6f55 90df 0100
0f00 0000 6d6f 746f 726f 6c61 2058 5431
3036 3839 3744 3245 3430 3630 3737 4143
3531 3632 3930 3937 3244 3933 3845 4343

我相信它是一个以空格分隔的,8列,零填充,2位十六进制数字。

我想用hexdump(hd)实用程序将这个hexdump转换回ascii。

如何进行?

谢谢。


实际上,这不是我在这里发布的所有字符串,因此手动转换它不是一种选择。我有一个包含此字符串的文本文件。另一个工具?我愿意接受建议。
pr.nizar

2
十六进制 - > ASCII字符串解码器 - > [1] [0] [0] [0] [0] [0] [0] [10]你[144] [223] [1] [0] [15] [0] [0] [0] motorola XT106897D2E406077AC516290972D938ECC
DavidPostill

Answers:


1

这就是我在Linux中所做的事情:

$ echo '0100 0000 3f00 0000 0a59 6f55 90df 0100
0f00 0000 6d6f 746f 726f 6c61 2058 5431
3036 3839 3744 3245 3430 3630 3737 4143
3531 3632 3930 3937 3244 3933 3845 4343' | xxd -r -p
?
YoU��motorola XT106897D2E406077AC516290972D938ECC
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.