macos 是否有适用于 Mac OS X 的图形二进制差异工具?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7871702/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:31:58  来源:igfitidea点击:

Is there any graphical Binary Diff tool for Mac OS X?

macosbinarydiff

提问by Michael Stum

Are there any Binary Diff tools for Mac OS X with a GUI? There are a gazillion text-based diff tools, but I need to compare two binary files. Essentially two Hex Editors with Dec/Hex View next to each other (the binary files are a custom file format, so not images or anything that has a more specialized diff tool)

是否有适用于带有 GUI 的 Mac OS X 的 Binary Diff 工具?有无数基于文本的差异工具,但我需要比较两个二进制文件。本质上是两个十六进制编辑器,带有彼此相邻的十进制/十六进制视图(二进制文件是自定义文件格式,因此不是图像或任何具有更专业差异工具的东西)

采纳答案by armel

there is Ellié Computing Merge (http://www.elliecomputing.com) (NB: I work for ECMerge). it can compare arbitrarily large files with usual Hex+ASCII views and side by side visual diff. it works on mac and linux/windows as well

有 Ellié Computing Merge ( http://www.elliecomputing.com)(注意:我为 ECMerge 工作)。它可以将任意大的文件与通常的 Hex+ASCII 视图和并排的视觉差异进行比较。它也适用于 mac 和 linux/windows

回答by Stefan Schmidt

I just discoverd Hex Fiend– love at first sight! Open both binary files then do File > Compare x and yor Shift+cmd+D

我刚刚发现了Hex Fiend- 一见钟情!打开两个二进制文件,然后做File > Compare x and yShift+ cmd+D

Hex Fiend

妖魔

回答by Matthew

You could store the hex of each binary in temp files, then compare themwith diff. This would give you the visual hex difference.

您可以将每个二进制文件的十六进制存储在临时文件中,然后将它们diff. 这会给你视觉十六进制差异。

xxd -c 1 file1 | cut -d ' ' -f 2 > file1.hex
xxd -c 1 file2 | cut -d ' ' -f 2 > file2.hex

diff file1.hex file2.hex

xxdcreates a hex dump, and we're telling it to print one byte per line, then cutsplits on space and compares the correct column

xxd创建一个十六进制转储,我们告诉它每行打印一个字节,然后cut在空间上拆分并比较正确的列

you could also use odinstead of xxd

你也可以使用od代替xxd

回答by jjazzboss

You can use colorbindiff.plit's a simple perl script that does exactly what you want, a side-by-side (and colored) binary diff. It shows byte changes and byte additions/deletions.

您可以使用colorbindiff.pl它是一个简单的 perl 脚本,它完全符合您的要求,并排(和彩色)二进制差异。它显示字节更改和字节添加/删除。

colorbindiff output snapshot

colorbindiff 输出快照

You can find it on GitHub.

您可以在GitHub 上找到它。

回答by justin

have you tried araxis merge?

你试过araxis合并吗?

回答by jsears

My go-to is for stuff like this is 010 Editor. It has a very customizable hex bin-diff, configurable min match length, synchronized scrolling, and much more.

我的首选是这样的东西010 Editor。它有一个非常可定制的十六进制 bin-diff、可配置的最小匹配长度、同步滚动等等。

Beyond Compare 4does a pretty good job, especially if you have multiple binary files to compare. However, it's matching isn't obviously configurable and can be wonky, depending on the use-case.

Beyond Compare 4做得非常好,尤其是当您有多个二进制文件要比较时。但是,它的匹配显然不是可配置的,并且可能不稳定,具体取决于用例。