Skip to main content

I need to compare two binary files and get the output in the form:

<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. So if file1.bin is

  00 90 00 11

in binary form and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

Is there a way to do this in Linux? I know about cmp -lcmp -l but it uses a decimal system for offsets and octal for bytes which I would like to avoid.

I need to compare two binary files and get the output in the form:

<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. So if file1.bin is

  00 90 00 11

in binary form and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

Is there a way to do this in Linux? I know about cmp -l but it uses a decimal system for offsets and octal for bytes which I would like to avoid.

I need to compare two binary files and get the output in the form

<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. So if file1.bin is

  00 90 00 11

in binary form and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

Is there a way to do this in Linux? I know about cmp -l but it uses a decimal system for offsets and octal for bytes which I would like to avoid.

remove even suggestion of a sotware rec
Source Link
bertieb
  • 7.5k
  • 36
  • 43
  • 54

I need to compare two binary files and get the output in the form:

<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. So if file1.bin is

  00 90 00 11

in binary form and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

What is the easiestIs there a way to accomplish the goal? Standard tool? Some third-party tooldo this in Linux?

(Note: cmp -l should be killed with fire, it uses a decimal system for offsets and octal for bytes.) I know about cmp -l but it uses a decimal system for offsets and octal for bytes which I would like to avoid.

I need to compare two binary files and get the output in the form

<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. So if file1.bin is

  00 90 00 11

in binary form and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

What is the easiest way to accomplish the goal? Standard tool? Some third-party tool?

(Note: cmp -l should be killed with fire, it uses a decimal system for offsets and octal for bytes.)

I need to compare two binary files and get the output in the form:

<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. So if file1.bin is

  00 90 00 11

in binary form and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

Is there a way to do this in Linux? I know about cmp -l but it uses a decimal system for offsets and octal for bytes which I would like to avoid.

Post Closed as "Not suitable for this site" by DavidPostill
Tweeted twitter.com/super_user/status/1050128991716294668
Unhid "<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>" by encoding "<" as "&lt;". Deemphasised non-important information.
Source Link
Peter Mortensen
  • 12.2k
  • 23
  • 72
  • 90

I need to compare two binary files and get the output in the form

 <fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. SoSo if file1.binfile1.bin is

  00 90 00 11

in binary form

  and file2.binfile2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

whatWhat is the easiest way to accomplish the goal? Standard tool? Some 3rd partythird-party tool?

Note: cmp -l should be killed with fire, it uses a decimal system for offsets and octal for bytes.(Note: cmp -l should be killed with fire, it uses a decimal system for offsets and octal for bytes.)

I need to compare two binary files and get output in form

 

for every different byte. So if file1.bin is

  00 90 00 11

in binary form

  and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

what is the easiest way to accomplish the goal? Standard tool? Some 3rd party tool?

Note: cmp -l should be killed with fire, it uses a decimal system for offsets and octal for bytes.

I need to compare two binary files and get the output in the form

<fileoffset-hex> <file1-byte-hex> <file2-byte-hex>

for every different byte. So if file1.bin is

  00 90 00 11

in binary form and file2.bin is

  00 91 00 10

I want to get something like

  00000001 90 91
  00000003 11 10

What is the easiest way to accomplish the goal? Standard tool? Some third-party tool?

(Note: cmp -l should be killed with fire, it uses a decimal system for offsets and octal for bytes.)

deleted 41 characters in body; edited tags; edited title
Source Link
slhck
  • 230.2k
  • 71
  • 621
  • 603
Loading
Source Link
frustratedCmpNoLongerUser
frustratedCmpNoLongerUser
Loading