tags:

views:

50

answers:

1

hi i want to know how to create a PATCH for the difference file i got by comparing two banary files. $cmp -l > output file name

i checked for text files 'diff" can be used to compare and generate a PATCH file $ diff -u oldFile newFile > mods.diff # -u tells diff to output unified diff format

i want to apply the PATCH on the old binary image file to get my new binary image file.

thank you --sujit

+1  A: 

Diff and Patch are designed to work with text files, not arbitrary binary data. You should use something like bsdiff instead.

Craig Peterson