| 1 |
|
|---|
| 2 | OD(1) USER COMMANDS OD(1)
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | NAME
|
|---|
| 7 | od - octal, decimal, hex, ascii dump
|
|---|
| 8 |
|
|---|
| 9 | SYNOPSIS
|
|---|
| 10 | od [ -format ] [ file ] [+]offset
|
|---|
| 11 |
|
|---|
| 12 | DESCRIPTION
|
|---|
| 13 | Od displays file, or it's standard input, in one or more
|
|---|
| 14 | dump formats as selected by the first argument. If the
|
|---|
| 15 | first argument is missing, -o (octal) is the default. Dump-
|
|---|
| 16 | ing continues until end-of-file.
|
|---|
| 17 |
|
|---|
| 18 | The meanings of the format argument characters are:
|
|---|
| 19 |
|
|---|
| 20 | b Interpret bytes as unsigned octal.
|
|---|
| 21 |
|
|---|
| 22 | c Interpret bytes as ASCII characters. Certain non-
|
|---|
| 23 | graphic characters appear as C escapes: null=\0,
|
|---|
| 24 | backspace=\b, formfeed=\f, newline=\n, return=\r,
|
|---|
| 25 | tab=\t; others appear as 3-digit octal numbers.
|
|---|
| 26 |
|
|---|
| 27 | d Interpret (short) words as unsigned decimal.
|
|---|
| 28 |
|
|---|
| 29 | o Interpret (short) words as unsigned octal.
|
|---|
| 30 |
|
|---|
| 31 | x Interpret (short) words as hexadecimal.
|
|---|
| 32 |
|
|---|
| 33 | The offset argument specifies the byte offset into the file
|
|---|
| 34 | where dumping is to commence. By default this argument is
|
|---|
| 35 | interpreted in octal. A different radix can be specified;
|
|---|
| 36 | If ``.'' is appended to the argument, then offset is inter-
|
|---|
| 37 | preted in decimal. If offset begins with ``x'' or ``0x'',
|
|---|
| 38 | it is interpreted in hexadecimal.
|
|---|