Auf der Suche nach einem format string für hexdump (Option -e), der meine Daten genauso wie die Option -C ausgibt, allerdings nur jeweils 8 Byte pro Zeile behandelt, bin ich auf folgendes Ergebnis gekommen:
hexdump -v -e '"%08_ax "' -e ' 8/1 "%02x " ' -e '" |"' -e '8/1 "%_p" ' -e '"|\n"' file |
Ergebnis:
... 00240d68 64 69 72 31 0a 02 01 00 |dir1....| 00240d70 00 00 04 64 69 72 32 02 |...dir2.| 00240d78 01 00 00 00 06 c3 a4 c3 |........| 00240d80 b6 c3 bc 00 00 00 00 05 |........| 00240d88 67 2e 74 78 74 00 00 00 |g.txt...| ... |