16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

|<br />

|<br />

od<br />

LL Corresponds to the number of bytes in a long long int<br />

x Hexadecimal. A one-digit number can follow x, telling od how many<br />

bytes to use. This must correspond to the size of a char (1 byte<br />

character), a short (2 byte short), an int (4 byte integer), a long (4<br />

byte long, which is currently the same as integer on z/<strong>OS</strong>), or a<br />

long long (8 byte integer). The default size is the size of an int. A<br />

symbolic size character can follow x, rather than the number of<br />

bytes. These have the following meaning:<br />

C Corresponds to number of bytes in a char<br />

S Corresponds to number of bytes in a short int<br />

I Corresponds to the number of bytes in an int<br />

L Corresponds to the number of bytes in a long int<br />

LL Corresponds to the number of bytes in a long long int<br />

Multiple format characters can appear in one type_string and multiple –t<br />

options can appear on the command line. If there is no –t option, the<br />

default is –t oS.<br />

Note: –t a is mutually exclusive with the file tag specific option, –T.<br />

The second form of od is the historical (Berkeley Software Distribution)<br />

implementation of the command. If you use this form, you can specify only a single<br />

input file. If you do not give a file argument, od reads the standard input. You can<br />

supply an offset, but you must precede it with a plus sign (+) to distinguish it from a<br />

filename if no file is given. Giving an offset causes a seek to a position in the file<br />

where output begins. If the offset ends in a period (.), od considers it to be<br />

decimal; otherwise, od considers it octal. If you follow the offset with a b, od<br />

multiplies it by the block size of 512 bytes. The format of the offset determines the<br />

format of the address; that is, if it is interpreted as decimal, the addresses are<br />

displayed in decimal.<br />

Note: The od command does not work on a file whose filename starts with either a<br />

digit or a plus (+) sign, unless the –A, –N, –j, or –t options are used.<br />

The second form of od accepts the following options:<br />

–b Bytes in octal<br />

–c Bytes as characters<br />

–D Unsigned decimal longs (4 bytes)<br />

–d Unsigned decimal words (2 bytes)<br />

–h Bytes in hexadecimal<br />

–O Unsigned octal longs<br />

–o Unsigned octal words<br />

–S Signed decimal longs<br />

–s Signed decimal words<br />

–X Unsigned hexadecimal longs<br />

–x Unsigned hexadecimal words<br />

File Tag Specific Option<br />

–T Enables automatic conversion (autoconversion) for tagged files. This option<br />

is mutually exclusive with –t a.<br />

For more information about autoconversion and file tagging, see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong><br />

<strong>Services</strong> Planning.<br />

462 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!