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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

od<br />

Options<br />

of options to generate multiple formats with the requested representation of each<br />

byte vertically aligned. The file seek address (in octal) precedes each line of new<br />

data.<br />

od recognizes two syntaxes. The first one conforms to P<strong>OS</strong>IX. If you choose the<br />

first form, od displays files from the list file one at a time. If no file appears on the<br />

command line, od reads the standard input.<br />

For a summary of the <strong>UNIX</strong>03 changes to this command, see Appendix N, “<strong>UNIX</strong><br />

shell commands changed for <strong>UNIX</strong>03,” on page 943.<br />

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

–v Displays all lines. Normally, od does not display multiple lines that differ<br />

only in the address. It displays the first line with a single * under it. to show<br />

that any subsequent lines are the same.<br />

–A addr_fmt<br />

Specifies the format that od uses to display the address field. addr_fmt can<br />

be d (decimal), o (octal), x (hexadecimal), or n (do not display address).<br />

The default is –A o.<br />

–j num<br />

Skips num bytes from the beginning of the file. If you precede num with 0X<br />

or 0x, od interprets it as hexadecimal. If you precede it with 0, od interprets<br />

it as octal; otherwise, od assumes it is decimal. You can also append b, k,<br />

or m to num to indicate 512-byte blocks, kilobytes, or megabytes instead of<br />

bytes. If num is hexadecimal, any appended b will be considered to be the<br />

final hexadecimal digit rather than 512-byte block.<br />

Be careful with this option when working with doublebyte characters. If byte<br />

num+1 (the starting byte, after skipping num bytes) is not the first byte of a<br />

character, od proceeds as though it is, resulting in a misinterpretation of<br />

that and subsequent characters. This misinterpretation continues until od<br />

encounters a . Then it is once again synchronized with the first<br />

byte of a doublebyte character.<br />

–N num<br />

Processes a maximum of num bytes. Be careful with this option when<br />

working with doublebyte characters. If od is processing a doublebyte<br />

character when it encounters the numth byte and this byte is not the last<br />

byte of the character, od displays ??? instead of the character.<br />

–t type_string<br />

Specifies the output format. type_string can contain the following format<br />

characters:<br />

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

a Named characters from the ISO 646 character set. Data is<br />

interpreted as if it was coded in the ISO 646 character set.<br />

c Characters. od displays nonprintable characters as backslash<br />

sequences and displays printable doublebyte characters properly.<br />

A printable doublebyte character is displayed in the first byte<br />

position, and the remaining positions to the end of the character<br />

display ** to indicate the doublebyte character. Nonprintable<br />

doublebyte characters are displayed using a 3-digit octal number to<br />

represent each byte.

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

Saved successfully!

Ooh no, something went wrong!