NAME
od - dump files in octal and other formats
SYNOPSIS
od [ -aBbcDdeFfHhilOosXxv ] [-j skip_bytes] [-N limit_bytes] [ -A radix ] [ -t type ] [ file... ]
DESCRIPTION
od writes to the standard output the contents of the given files, or of the standard input if no files are specified. Each line of the output consists of the offset in the input file in the leftmost column of each line, followed by one or more columns of data from the file, in a format controlled by the options. By default, od prints the file offsets in octal and the file data as two-byte octal numbers.
OPTIONS
The following options are available:
- -A Radix
-
Select offset prefix format: 'd' for decimal, 'o' for octal, 'x' for hexadecimal, 'n' for none.
- -a
-
Dump characters in 7-bit ASCII format, ignoring the highest bit of each byte. The names of ASCII control characters are displayed.
- -B
-
Same as -o
- -b
-
Single-byte octal display.
- -c
-
Display characters literally, with non-printable characters displayed as C escape sequences.
- -D
-
Four-byte unsigned decimal display.
- -d
-
Two-byte unsigned decimal display.
- -e
-
Eight-byte floating point display.
- -F
-
Same as -e
- -f
-
Show input as floating point numbers in exponent form.
- -H
-
Four-byte hex display.
- -h
-
Two-byte hex display.
- -i
-
Show two-byte signed decimal integers.
- -j Skip
-
Ignore the first Skip bytes of input.
- -l
-
Show four-byte signed decimal integers.
- -N Bytes
-
Set the number of maximum input bytes read.
- -O
-
Four-byte octal display.
- -o
-
Format input as two-byte octal numbers.
- -s
-
Same as -i
- -t Type
-
Select output format as one of the following:
a ASCII character names. Same as -a c Characters with C escapes. Same as -c o1 1-byte unsigned octal o2 2-byte unsigned octal o4 4-byte unsigned octal o8 8-byte unsigned octal d1 1-byte signed decimal d2 2-byte signed decimal d4 4-byte signed decimal d8 8-byte signed decimal u1 1-byte unsigned decimal u2 2-byte unsigned decimal u4 4-byte unsigned decimal u8 8-byte unsigned decimal x1 1-byte unsigned hexadecimal x2 2-byte unsigned hexadecimal x4 4-byte unsigned hexadecimal x8 8-byte unsigned hexadecimal f4 4-byte floating point. Same as -f f8 8-byte floating point. Same as -F
This option overrides other formatting options.
- -X
-
Same as -H
- -x
-
Same as -h
- -v
-
Show all lines, even if they are identical to the previous line.
SEE ALSO
od(1)
AUTHOR
Mark Kahn, mkahn@vbe.com.
COPYRIGHT and LICENSE
This program is copyright (c) Mark Kahn 1999.
This program is free and open software. You may use, modify, distribute, and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same.