Reference

hextype(1)

hexadecimal dump program

NAME

hextype - hexadecimal dump program

SYNOPSIS

hextype [-l <numlines> | -b <numbytes>] files...

DESCRIPTION

hextype displays a hexadecimal output of each file given at the commandline.

The output consists of 3 columns. Each row contains up to 16 characters. The first column contains the address of the row (in 16-byte words). In the second column each byte is represented by its hex-value (00 to FF) and in the third are the bytes in printable characters (unlike od -c hextype does not print unprintable chars with a 2-char "escape-sequence". They are replaces by a dot.

If no filename is specified hextype prints a short version information and exits.

OPTIONS

files...

The files to be hextyped. The following options are aplied for all files.

numlines

The number of lines to be display for each file. Hextype displayes only the first numlines number of lines.

numbytes

The number of bytes to be display for each file. Hextype displayes only the first numbytes number of bytes.

It does not make much sense to use -b and -l together. Therefor only the last option is used. So hextype -b 4 -l 10 data.bin would display the first 10 lines (or 160 bytes).

BUGS

When processing stdin hextype does not stop reading on the first solitary EOF (Ctrl-D) character in the input stream. Two EOF chars are required to end reading from stdin.

TODO

Support reading from stdin. Use mmap(2) instead of subsequent fread(2) for better performance.

AUTHOR

hextype was written by Juergen P. Meier ([email protected]) and comes under the conditions of the GNU General Public License. See the file COPYING for details.

FILES

/proc/self/fd/0 - stdin of a process

SEE ALSO

od(1), proc(5)