od displays filename, or its standard input, in one or more dump formats as selected by the first argument. If the first argument is missing, -o (octal) is the default. Dumping continues until an EOF.
The meanings of the format argument characters are:
An upper case format character implies the long or double precision form of the object.
The offset argument specifies the byte offset into the file where dumping is to commence. By default this argument is interpreted in octal. A different radix can be specified; if `.' is appended to the argument, then offset is interpreted in decimal. If offset begins with x or 0x, it is interpreted in hexadecimal. If b (B) is appended, the offset is interpreted as a block count, where a block is 512 (1024) bytes. If the filename argument is omitted, the offset argument must be preceded by `+'.
The radix of the displayed address will be the same as the radix of the offset, if specified; otherwise it will be octal.
label will be interpreted as a pseudo-address for the first byte displayed. It will be shown in () following the file offset. It is intended to be used with core images to indicate the real memory address. The syntax for label is identical to that for offset.
The s format interprets (short) words as signed decimal, rather than searching for strings; the S format searches for strings.
The environment variables LC_CTYPE, LANG, and LC_default control the character classification throughout od. On entry to od, these environment variables are checked in the following order: LC_CTYPE, LANG, and LC_default. When a valid value is found, remaining environment variables for character classification are ignored. For example, a new setting for LANG does not override the current valid character classification rules of LC_CTYPE. When none of the values is valid, the shell character classification defaults to the POSIX.1 ``C'' locale.
A file name argument cannot start with `+'. A hexadecimal offset cannot be a block count. Only one file name argument can be given.
It is an historical botch to require specification of object, radix, and sign representation in a single character argument.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97