如何箱补丁文件给不同的二进制输出文件 [英] how to crate a PATCH file for the binary difference output file
问题描述
喜
我想知道如何创建差异文件我得到通过比较两个banary文件的补丁。
$ CMP -l>输出文件名
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
我查文本文件差异可以用来比较,并生成一个补丁文件
$差异-u oldfile newfile将对> mods.diff#-u告诉diff来输出统一差异格式
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.
感谢您
--sujit
thank you --sujit
推荐答案
diff和patch的设计与文本文件,不是任意的二进制数据的工作。你应该使用类似 bsdiff 来代替。
Diff and Patch are designed to work with text files, not arbitrary binary data. You should use something like bsdiff instead.
这篇关于如何箱补丁文件给不同的二进制输出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!