rhd(1) rhd(1) NAME rhd - a simple utility for dumping a file in hex SYNOPSIS rhd [options] [file1] ... [fileN] DESCRIPTION rhd is a simple utility for dumping the contents of files in hex. If no files are specified it dumps the contents of stdin. The output of rhd looks like: 00000000: 23 20 4d 61 6b 65 66 69 | # Makefi | 00000008: 6c 65 20 66 6f 72 20 68 | le for h | 00000010: 64 0a 23 20 24 49 64 3a | d.# $Id: | The first column lists the starting offset of the characters displayed on that line. This is followed by a dump of the hex values of the char- acters. Finally the ASCII representation of the hex values is dis- played. Unprintable characters are displayed as periods (.). OPTIONS -c [chars] Dumps [chars] characters per line. The default is 16 characters. -s [offset] Starts the dump at offset [offset] in the file. By default rhd starts at the beginning of the file (offset 0). If [offset] is greater than the length of the file, no dump is produced. -e [offset] End the dump at offset [offset] in the file. The default behav- ior is to dump the entire file. If [offset] is greater than the length of the file, dumping stops at the end of the file. This option and the -l option are mutually exclusive. -l [len] Dumps [len] bytes. The default behavior is to dump the entire file. If [len] is greater than the length of the file, dumping stops at the end of the file. This option and the -e option are mutually exclusive. -v Displays the version -h Displays a help message -A No ASCII - Prevents the output of the printable ascii string at the end of each line of the dump. -O No Offset - Prevents the output of the file offset information at the beginning of every line. SEE ALSO od(1), strings(1), hexdump(1) PLATFORMS rhd has been tested on MacOS X, FreeBSD, OpenBSD, Linux and Solaris. HISTORY The rhd command was written by Sriranga Veeraraghavan . rhd(1)