Commit | Line | Data |
---|---|---|
ad4f09a5 KT |
1 | .pa 1 |
2 | .he 'OD (I)'1/15/73'OD (I)' | |
3 | .ti 0 | |
4 | NAME od -- octal dump | |
5 | .sp | |
6 | .ti 0 | |
7 | SYNOPSIS od\b\b__ [ -abcdho\b\b\b\b\b\b\b_______ ] [ file ] [ [+\b_]offset[.\b_][b\b_] ] | |
8 | .sp | |
9 | .ti 0 | |
10 | DESCRIPTION od\b\b__ | |
11 | dumps | |
12 | file\b\b\b\b____ | |
13 | in | |
14 | one or more formats | |
15 | as | |
16 | selected by the first argument. | |
17 | (If the first argument is missing, -o\b\b__ is default.) | |
18 | The meanings of the format argument characters | |
19 | are: | |
20 | ||
21 | .in +5 | |
22 | .ti -2 | |
23 | a\b_ interprets words as PDP-11 instructions and | |
24 | dis-assembles the operation code. | |
25 | Unknown operation codes print as ???. | |
26 | ||
27 | .ti -2 | |
28 | b\b_ interprets bytes in octal. | |
29 | ||
30 | .ti -2 | |
31 | c\b_ interprets bytes in ascii. | |
32 | Unknown ascii characters are printed as \\?. | |
33 | ||
34 | .ti -2 | |
35 | d\b_ interprets words in decimal. | |
36 | ||
37 | .ti -2 | |
38 | h\b_ interprets words in hex. | |
39 | ||
40 | .ti -2 | |
41 | o\b_ interprets words in octal. | |
42 | ||
43 | .in -5 | |
44 | The file argument specifies which file is to be dumped. | |
45 | If no file argument is specified, | |
46 | the standard input is used. | |
47 | Thus od can be used as a filter. | |
48 | ||
49 | The offset argument specifies the offset | |
50 | in the file where dumping is to commence. | |
51 | This argument is normally interpreted | |
52 | as octal bytes. | |
53 | If '.' is appended, the offset is interpreted in | |
54 | decimal. | |
55 | If 'b' is appended, the offset is interpreted in blocks. | |
56 | (A block is 512 bytes.) | |
57 | If the file argument is omitted, | |
58 | the offset argument must be preceded by '+'. | |
59 | ||
60 | Dumping continues until an end-of-file | |
61 | condition or until | |
62 | halted by sending an interrupt signal. | |
63 | .sp | |
64 | .ti 0 | |
65 | FILES -- | |
66 | .sp | |
67 | .ti 0 | |
68 | SEE ALSO db(I) | |
69 | .sp | |
70 | .ti 0 | |
71 | DIAGNOSTICS -- | |
72 | .sp | |
73 | .ti 0 | |
74 | BUGS -- |