Tweak is a hex editor. It allows you to edit a file at very low level, letting you see the full and exact binary contents of the file. It can be useful for modifying binary files such as executables, editing disk or CD images, debugging programs that generate binary file formats incorrectly, and many other things.
Tweak currently runs on Unix, using the
to run in a terminal.
Tweak uses a complex data structure based on B-trees, designed to make almost all editing operations extremely fast, even when they are working on huge amounts of data.
The data structure is described in detail on a separate page for those interested. The bottom line is:
You might think, from reading this, that the entire purpose of publishing Tweak was to show off my shiny data structure. You would be right :-)
The current public release, Tweak 3.01, is available as a source tarball here:
You can read its
man page online.
If you want to see the latest state of development, you can check the development sources out from my Subversion repository.
The Subversion URL you need for Tweak is
svn://svn.tartarus.org/sgt/tweak. You will also need
two source files
which are in a different directory called
library. So to check
out all the code necessary to build Tweak, you would need commands
such as this:
svn co svn://svn.tartarus.org/sgt/tweak svn co svn://svn.tartarus.org/sgt/library ln -s ../library/btree.c tweak ln -s ../library/btree.h tweak
Alternatively, you can browse the Subversion repository on the WWW, here.