macos Mac 上有什么好的十六进制编辑器/查看器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/827326/
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
What's a good hex editor/viewer for the Mac?
提问by Mike Akers
What's a good hex editor/viewer for the Mac? I've used xxd for viewing hexdumps, and I think it can be used in reverse to make edits. But what I really want is a real hex editor.
Mac 上有什么好的十六进制编辑器/查看器?我已经使用 xxd 来查看 hexdumps,我认为它可以反向使用来进行编辑。但我真正想要的是一个真正的十六进制编辑器。
回答by Ayman Hourieh
To view the file, run:
要查看文件,请运行:
xxd filename | less
To use Vim as a hex editor:
使用 Vim 作为十六进制编辑器:
- Open the file in Vim.
- Run
:%!xxd
(transform buffer to hex) - Edit.
- Run
:%!xxd -r
(reverse transformation) - Save.
- 在 Vim 中打开文件。
- 运行
:%!xxd
(将缓冲区转换为十六进制) - 编辑。
- 运行
:%!xxd -r
(逆变换) - 保存。
回答by crizCraig
- Open file with Xcode and press Command + Shift + J
- Right click file name in left pane
- Open as -> Hex
- 使用 Xcode 打开文件并按 Command + Shift + J
- 在左窗格中右键单击文件名
- 打开为 -> 十六进制
回答by pi3
On http://www.synalysis.net/you can get the hex editor I'm developing for the Mac - Synalyze It!. It costs 7 / 40 (Pro version) and offers some extra features like histogram, incremental search, support of many text encodings and interactive definition of a "grammar" for your file format.
在http://www.synalysis.net/ 上,您可以获得我正在为 Mac 开发的十六进制编辑器 - Synalyze It!。它的成本为 7 / 40(专业版),并提供一些额外的功能,例如直方图、增量搜索、支持多种文本编码以及文件格式的“语法”的交互式定义。
The grammar helps to interpret the files and colors the hex view for easier analysis.
语法有助于解释文件并为十六进制视图着色以便于分析。
回答by Pablo Santa Cruz
There are probably better options, but I use and kind of like TextWranglerfor basic hex editing. File -> hex Dump File
可能有更好的选择,但我使用并且有点像TextWrangler进行基本的十六进制编辑。文件 -> 十六进制转储文件