MPE/iX Shell and Utilities Reference Manual, Vol 2

od(1) MPE/iX Shell and Utilities od(1)
NAME
od — formatted file dump
SYNOPSIS
od [–bcDdhOoSsXx][file][[+]offset[.][b]]
od [–v][–A addr_fmt][–j num [bkm]] [–N num][–t type_string][file ...]
DESCRIPTION
od (octal dump) dumps a file to the standard output in a format specified by command line
options. The default format is octal words. You can use combinations of options to generate
multiple formats with the requested representation of each byte vertically aligned. The file
seek address (in octal) precedes each line of new data.
od recognizes two syntaxes. The first one given in the SYNOPSIS is the historical (
BSD)
implementation of the command. With this form, you can specify only a single input file.If
no file is specified, od reads the standard input. Specifying an offset (preceded by a plus sign
(+) to distinguish it from a file name if no file is given) causes a seek to a position in the file
where output begins. If the offset ends in a period (.), od considers it to be decimal; other-
wise, it is considered octal. If you follow the offset with a b, od multiplies it by the block size
of 512 bytes. The format of the offset determines the format of the address; that is, if the offset
is decimal, addresses are displayed in decimal.
If you choose the second (
POSIX-compliant) form, od displays the files listed on the command
line one at a time. If no file appears on the command line, od reads the standard input.
Options
The first form of od accepts the following options:
–b bytes in octal
–c bytes in
ASCII
–D unsigned decimal longs (4 bytes)
–d unsigned decimal words (2 bytes)
–h bytes in hex
–O unsigned octal longs
–o unsigned octal words
–S signed decimal longs
–s signed decimal words
–X unsigned hexadecimal longs
–x unsigned hexadecimal words
The second (POSIX-compliant) form accepts the following options:
–A addr_fmt
specifies the format for displaying the address field. addr_fmt can be d (decimal), o
(octal), x (hexadecimal), or n (do not display address). The default is –A o.
Commands and Utilities 1-397