gpt4 book ai didi

linux - 如何将 hexdump 的内联转录输出为 ASCII?

转载 作者:太空宇宙 更新时间:2023-11-04 09:08:06 27 4
gpt4 key购买 nike

这是一个来自名为 HEXedit 的程序的示例,它显示了我所说的内联的意思:

3a40 - 31 65 33 38 00 00 00 00 00 00 00 00 00 00 00 00 - 1e38............
3a50 - 00 00 00 00 00 00 00 00 00 00 0a 00 74 00 65 00 - ............t.e.
3a60 - 78 00 74 00 2f 00 61 00 73 00 63 00 69 00 69 00 - x.t./.a.s.c.i.i.
3a70 - 00 00 18 00 61 00 66 00 66 00 79 00 6d 00 65 00 - ....a.f.f.y.m.e
3a80 - 74 00 72 00 69 00 78 00 2d 00 61 00 72 00 72 00 - t.r.i.x.-.a.r.r
3a90 - 61 00 79 00 2d 00 62 00 61 00 72 00 63 00 6f 00 - a.y.-.b.a.r.c.o.
3aa0 - 64 00 65 00 00 00 64 00 40 00 35 00 32 00 30 00 - d.e...d.@.5.2.0.
3ab0 - 38 00 32 00 36 00 30 00 30 00 39 00 31 00 30 00 - 8.2.6.0.0.9.1.0.
3ac0 - 37 00 30 00 36 00 31 00 31 00 31 00 38 00 31 00 - 7.0.6.1.1.1.8.1.
3ad0 - 31 00 34 00 31 00 32 00 31 00 33 00 34 00 35 00 - 1.4.1.2.1.3.4.5.
3ae0 - 35 00 30 00 39 00 38 00 39 00 00 00 00 00 00 00 - 5.0.9.8.9.......
3af0 - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
3b00 - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0a 00 - ................

可能有一种方法可以通过 hexdump 做到这一点,但我还没有找到办法。

最佳答案

我相信您正在寻找 hexdump -C

$ hexdump -C end
00000000 54 68 69 73 20 69 73 20 74 68 65 20 65 6e 64 0a |This is the end.|
00000010 42 65 61 75 74 69 66 75 6c 20 66 72 69 65 6e 64 |Beautiful friend|
00000020 0a |.|
00000021

关于linux - 如何将 hexdump 的内联转录输出为 ASCII?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5964024/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com