I am analyzing hexadecimal data from dumps of binary data from a basic command line program. I basically dump the exact contents of the structure (a large array of structures, in fact) into a text file.
Then I create a second binary dump and compare two files in vim
with xxd
to create binary-textual representations of the source data.
Both files are the same size in bytes, and I'm trying to compare them in a meaningful way. Even a small change in the data before I reset the file leads to a big change in other parts of the file due to other sections containing hashes, functions based on changing the value, etc.
Is it possible to say diff
or vimdiff
say, compare two files and show me only parts of the file, where in the source file (that is: file 1) the value was set to 1
, and in the second file the value was set to 32
?
Thank!
source
share