更新时间:2023-09-25 18:20:40
您可以指定希望hexdump
用于输出的确切格式,但这有点棘手.这是默认输出,减去文件偏移量:
You can specify the exact format that you want hexdump
to use for output, but it's a bit tricky. Here's the default output, minus the file offsets:
hexdump -e '16/1 "%02x " "\n"' file.bin
(对我来说,这似乎会在末尾产生额外的尾随空间 每一行,但出于某种原因却没有.)
(To me, it looks like this would produce an extra trailing space at the end of each line, but for some reason it doesn't.)