Is there a way to edit binary files in some kind of hexadecimal mode?įor example if I have some binary data shown by xxd or hexdump -C like this: $ hexdump -C a.bin | head -n 5Ġ0000000 cf fa ed fe 07 00 00 01 03 00 00 80 02 00 00 00 |.|Ġ0000010 12 00 00 00 40 05 00 00 85 00 20 00 00 00 00 00.