Sample Header Ad - 728x90

Bad byte count while using hexdump

3 votes
1 answer
657 views
I am trying to display a binary file with records consisting of: 8 bytes unsigned int 4 bytes unsigned int 4 bytes unsigned int 4 bytes unsigned int 4 bytes unsigned int I try to display it using hexdump as follows: hexdump -v -e '1/8 "%015d " 4/4 " %6d" "\n"' binfile But I get: hexdump: d: bad byte count I am using FreeBSD 12 -if relevant-
Asked by M.E. (631 rep)
Jun 1, 2021, 09:24 AM
Last activity: Jun 1, 2021, 10:26 AM