man.bsd.lv manual page server

Manual Page Search Parameters

OD(1) General Commands Manual OD(1)

odoctal, decimal, hex, ASCII dump

od [-aBbcDdeFfHhIiLlOosvXx] [-A base] [-j skip] [-N length] [-t type] [[+]offset[.][Bb]] [file ...]

The od utility is a filter which displays the specified files, or standard input if no files are specified, in a user specified format.

The options are as follows:

base
Specify the input address base. base may be one of d, o, x or n, which specify decimal, octal, hexadecimal addresses or no address, respectively.
Output named characters. Equivalent to -t a.
, -o
Output octal shorts. Equivalent to -t o2.
Output octal bytes. Equivalent to -t o1.
Output C-style escaped characters. Equivalent to -t c.
Output unsigned decimal ints. Equivalent to -t u4.
, -F
Output double-precision floating point numbers. Equivalent to -t fD.
Output single-precision floating point numbers. Equivalent to -t fF.
, -X
Output hexadecimal ints. Equivalent to -t x4.
, -x
Output hexadecimal shorts. Equivalent to -t x2.
, -L, -l
Output signed decimal longs. Equivalent to -t dL.
Output signed decimal ints. Equivalent to -t dI.
skip
Skip skip bytes of the combined input before dumping. The number may be followed by one of b, k or m which specify the units of the number as blocks (512 bytes), kilobytes and megabytes, respectively.
length
Dump at most length bytes of input.
Output octal ints. Equivalent to -t o4.
Output signed decimal shorts. Equivalent to -t d2.
type
Specify the output format. type is a string containing one or more of the following kinds of type specifiers:
Named characters (ASCII). Control characters are displayed using the following names:
000 nul 001 soh 002 stx 003 etx 004 eot 005 enq
006 ack 007 bel 008 bs 009 ht 00A nl 00B vt
00C ff 00D cr 00E so 00F si 010 dle 011 dc1
012 dc2 013 dc3 014 dc4 015 nak 016 syn 017 etb
018 can 019 em 01a sub 01B esc 01C fs 01D gs
01E rs 01F us 020 sp 0FF del
Characters in the default character set. Non-printing characters are represented as 3-digit octal character codes, except the following characters, which are represented as C escapes:

NUL
\0
alert
\a
backspace
\b
newline
\n
carriage-return
\r
tab
\t
vertical tab
\v
[d|o|u|x][C|S|I|L|n]
Signed decimal (d), octal (o), unsigned decimal (u) or hexadecimal (x). Followed by an optional size specifier, which may be either C (char), S (short), I (int), L (long), or a byte count as a decimal integer.
f[F|D|L|n]
Floating-point number. Followed by an optional size specifier, which may be either F (float), D (double) or L (long double).
Write all input data, instead of replacing lines of duplicate values with a ‘*’.

Multiple options that specify output format may be used; the output will contain one line for each format.

If no output format is specified, -t oS is assumed.

The od utility exits 0 on success, and >0 if an error occurs.

The traditional -s option to extract string constants is not supported; consider using strings(1) instead.

hexdump(1), strings(1)

The od utility conforms to IEEE Std 1003.1-2001 (“POSIX.1”).

An od command appeared in Version 1 AT&T UNIX.

April 17, 2002 DragonFly-5.6.1