|OD(1)||General Commands Manual||OD(1)|
odutility 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:
n, which specify decimal, octal, hexadecimal addresses or no address, respectively.
0X, offset is interpreted as a hexadecimal number, otherwise, with a leading
0, offset is interpreted as an octal number. Appending the character
mto offset causes it to be interpreted as a multiple of
As an alternative to
[file], the X/Open System Interfaces syntax
is also supported.
a selects US-ASCII output, with
control characters replaced with their names instead of as c escape
sequences. See also the
_u conversion provided
c selects a standard character based
conversion. See also the
_c conversion provided
f selects the floating point output
format. This type character can be optionally followed by the characters
F to specify
four-byte floating point output, or
L to specify eight-byte floating point output.
The default output format is eight-byte floats. See also the
e conversion provided by
x select decimal,
octal, unsigned decimal, or hex output respectively. These types can
optionally be followed by
C to specify
specify short-sized output,
to specify int-sized output,
to specify long-sized output,
1 to specify one-byte output,
2 to specify two-byte output,
4 to specify four-byte output, or
8 to specify eight-byte output. The default
output format is in four-byte quantities. See also the
provided by hexdump(1).
odto display all input data. Without the
-voption, any number of groups of output lines, which would be identical to the immediately preceding group of output lines (except for the input offsets), are replaced with a line comprised of a single asterisk.
For each input file,
copies the input to standard output, transforming the data according to the
options given. If no options are specified, the default display is
equivalent to specifying the
odutility exits 0 on success, and >0 if an error occurs.
odutility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification.
The flags [
-bcdosx] as well as the
offset specifier are marked by IEEE
Std 1003.1-2008 (“POSIX.1”) as being an X/Open System
The flags [
-aBDeFfHhIiLlOX] are extensions
to that specification.
odcommand appears in Version 1 AT&T UNIX.
This man page was written in February 2001 by Andrew Brown,
shortly after he augmented the
od syntax to include
things he felt had been missing for a long time.
|September 16, 2015||OpenBSD-current|