Skip to main content
The 2024 Developer Survey results are live! See the results
1 of 7
Dennis Williamson
  • 109.2k
  • 19
  • 172
  • 190

This will print the offset and bytes in hex:

cmp -l file1.bin file2.bin | awk '{printf "%08X %02X %02X\n", $1, strtonum(0$2), strtonum(0$3)}'
Dennis Williamson
  • 109.2k
  • 19
  • 172
  • 190