祝福十六进制编辑器 - 比较2个二进制文件

时间:2016-09-23 18:01:54

标签: linux ubuntu-16.04 hex-editors

有谁知道如何使用Bless十六进制编辑器查看2个二进制文件的所有差异?

1 个答案:

答案 0 :(得分:1)

是的,如果您不想编辑这些文件,可以使用一个程序将文件转换为十六进制,然后使用您想要的任何图形差异程序来区分输出。

-- Original ROW_NUMBER query SELECT * , ROW_NUMBER() OVER(PARTITION BY [Col1] ORDER BY [Col2]) AS [RN] FROM [#test] ORDER BY [Col1] , [rn]; -- Alternative w/ CROSS APPLY SELECT * FROM [#test] [t1] -- For each row in #test, -- Get the number of rows in #test where our partitioning column (Col1) is the same and the ordering column (Col2) is lower -- Add 1 to get the initial value to start at 1 instead of 0 (i.e. for the first value per partition, there are 0 rows with a lower ordering value) CROSS APPLY (SELECT COUNT(*) + 1 AS [rn] FROM [#test] [t2] WHERE [t1].[Col1] = [t2].[Col1] AND [t1].[Col2] > [t2].[Col2]) [t2] ORDER BY [Col1] , [rn];

请在此处阅读完整的答案:

https://unix.stackexchange.com/questions/217686/blessdiff-for-the-full-featured-hexadecimal-editor