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
Is there any graphical Binary Diff tool for Mac OS X?
提问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
回答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
xxd
creates a hex dump, and we're telling it to print one byte per line, then cut
splits on space and compares the correct column
xxd
创建一个十六进制转储,我们告诉它每行打印一个字节,然后cut
在空间上拆分并比较正确的列
you could also use od
instead of xxd
你也可以使用od
代替xxd
回答by jjazzboss
回答by justin
have you tried araxis merge?
你试过araxis合并吗?
回答by Vladislav
http://en.wikipedia.org/wiki/Comparison_of_hex_editors
http://en.wikipedia.org/wiki/Comparison_of_hex_editors
Maybe "HexEdit by Lane Roathe", wxHexEditor or UltraEdit
也许是“Lane Roathe 的HexEdit ”、wxHexEditor 或 UltraEdit
回答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做得非常好,尤其是当您有多个二进制文件要比较时。但是,它的匹配显然不是可配置的,并且可能不稳定,具体取决于用例。