NAME

od - dump files in octal and other formats

SYNOPSIS

od [ -aBbcdeFfHilOosXxv ] [-j skip_n_bytes] [-N read_n_bytes] [ -A radix ] [ 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

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.

-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

-X

Same as -H

-x

Use two-byte hexadecimal format.

-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.