Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xd(1) — HP-UX 8.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

adb(1)

od(1)

NAME

od, xd − octal and hexadecimal dump

SYNOPSIS

od [−bcdosx] [file] [[+][0x] offset [.][b]]
xd [−bcdosx] [file] [[+][0x] offset [.][b]]

DESCRIPTION

od (xd) dumps file in one or more formats as selected by the first argument.  If the first argument is missing, −o (−x) is the default.  An offset field is inserted at the beginning of each line.  For od, the offset is in octal, for xd, the offset is in hexadecimal.

Options

od and xd recognize the following format options:

−b Interpret bytes in octal (hexadecimal). 

−c Interpret bytes in ASCII.  Certain non-graphic characters appear as C escapes: null=\0, backspace=\b, form-feed=\f, new-line=\n, return=\r, tab=\t; others appear as 3-digit octal numbers. 

−d Interpret 16-bit words in decimal. 

−o Interpret 16-bit words in octal. 

−s Interpret 16-bit words in signed decimal. 

−x Interpret 16-bit words in hexadecimal. 

file specifies which file is to be dumped.  If file is not specified, the standard input is used. 

offset specifies the offset in the file where dumping is to commence, and is normally interpreted as octal bytes.  Interpretation can be altered as follows:

offset must be preceded by + if the file argument is omitted. 

offset preceded by 0x is interpreted in hexadecimal. 

offset followed by . is interpreted in decimal. 

offset followed by b is interpreted in blocks of 512 bytes. 

Dumping continues until end-of-file. 

EXTERNAL INFLUENCES

Environment Variables

LC_CTYPE determines the range of printable characters. 

LANG determines the language in which messages are displayed. 

If LC_CTYPE is not specified in the environment or is set to the empty string, the value of LANG is used as a default for each unspecified or empty variable.  If LANG is not specified or is set to the empty string, a default of "C" (see lang(5))isusedinsteadof LANG.  If any internationalization variable contains an invalid setting, od behaves as if all internationalization variables are set to "C".  See environ(5).

International Code Set Support

Single- and multi-byte character code sets are supported.  Multi-byte data is displayed as multi-byte values. 

SEE ALSO

adb(1). 

STANDARDS CONFORMANCE

od: SVID2, XPG2, XPG3

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026