
14 Dec
2015
14 Dec
'15
8:30 p.m.
Hi folks. As mentioned in passing last night, diff(1) isn’t much help for tracking down differences between two non-text files: all it will say is the files differ. However, there is a way to get detail on the differences, and that is to use a hex dump command like xxd(1) to produce text output from those binary files, and diff that text output instead. Thus, instead of diff binfile1 binfile2 you do diff <(xxd binfile1) <(xxd binfile2) This will quickly narrow down runs of changed bytes, and possibly even small sections of inserted or deleted bytes as well.