Hex - Formatted Output

This is basically the *nix 'cat' utility, but it outputs in a different format. Instead of simply copying stdin or a file directly to stdout, it formats its input into something you may be familiar with if you have seen a hex editor. By default, there will be a file offset on the left, then sixteen bytes in hex, then the characters printed out normally (the printable ones, that is).

Installation

Windows: Install MinGW or Cygwin with the MinGW GCC and Make packages. Then unzip the source into a directory using tar ('tar -zxf hex.tgz'), and finally type 'make'. Assuming no errors occurred, you should have a 'hex.exe' file. You can put it in a directory on your executable path (if you are using cygwin, /bin would be a good choice).
Linux: Download hex.tgz below, unzip it with 'tar -zxf hex.tgz', go into the 'hex' subdirectory, type 'make', and then copy 'hex' to a directory on your path.

Notes

This program is released under the GNU General Public License, rather than my usual release into the public domain. This is because I feel that this would make a good addition to the GNU Core Utilities, after it has been around long enough to make sure it is safe.

Download

Cross-platform Source (source and Makefile in hex/)

1