od(1) CLIX od(1)
NAME
od - Performs an octal file dump
SYNOPSIS
od [-bcdosx] [file] [[+]offset[.][b]]
FLAGS
-b Interprets bytes in octal.
-c Interprets bytes in ASCII. Certain nongraphic characters appear as C
escapes: null=\0, backspace=\b, formfeed=\f, newline=\n, return=\r,
tab=\t; others appear as 3-digit octal numbers.
-d Interprets words in unsigned decimal.
-o Interprets words in octal.
-s Interprets 16-bit words in signed decimal.
-x Interprets words in hex.
DESCRIPTION
The od command dumps file in one or more formats as selected by the flags
in the first argument. If the first argument is missing, -o is the
default.
The file argument specifies which file is to be dumped. If no file
argument is specified, stdin is used.
The offset argument specifies the offset in the file where dumping is to
commence. This argument is normally interpreted as octal bytes. If . is
appended, the offset is interpreted in decimal. If b is appended, the
offset is interpreted in blocks of 512 bytes. If the file argument is
omitted, the offset argument must be preceded by +.
The dumping continues until end-of-file.
EXAMPLES
To dump the file out starting with byte 3001 and interpret the bytes in
ASCII, enter the following:
od -c /tmp/output +3000
DIAGNOSTICS
2/94 - Intergraph Corporation 1
od(1) CLIX od(1)
od: cannot open filename
This file does not exist or has incorrect permissions.
EXIT VALUES
The od command exits with a value of 0 if successful and 2 if not
successful.
2 Intergraph Corporation - 2/94