I need from time to time to compare files binarily but haven't found any open source tool that can do this. UltraCompare can but it's a commercial product.
Anybody know of any?
I need from time to time to compare files binarily but haven't found any open source tool that can do this. UltraCompare can but it's a commercial product.
Anybody know of any?
Subversion must know how. It supports incremental change recording for binary objects.
Worst case you could look at their source base...
The standard GNU diff shows if two files differ. You might want to look into xdelta for tracking changes (probably what SCM tools use).
To see changes in the files you could hexdump both files and just diff them, I suppose.
GNU diffutils comes with a program called cmp
that will tell you the first offset at which two binary files differ. Unfortunately, it does little more than that.
Alternatively, you could hexdump each file and pipe it into your favorite text diff tool:
diff <(hexdump -v -e '1/1 "%02x\n"' binfile1) <(hexdump -v '1/1 "%02x\n"' binfile2)