Research V4 development
[unix-history] / man / man1 / od.1
CommitLineData
96a3a758
KT
1.th OD I 1/15/73
2.sh NAME
3od \*- octal dump
4.sh SYNOPSIS
5.bd od
6[
7.bd \*-abcdho
8] [ file ] [ [
9.bd +
10] offset[ \fB. \fR][ \fBb\fR ] ]
11.sh DESCRIPTION
12.it Od
13dumps
14.it file
15in
16one or more formats
17as
18selected by the first argument.
19If the first argument is missing
20.bd \*-o
21is default.
22The meanings of the format argument characters
23are:
24.s3
25.lp +3 3
26\fBa\fR interprets words as PDP-11 instructions and
27dis-assembles the operation code.
28Unknown operation codes print as ???.
29.s3
30.lp +3 3
31\fBb\fR interprets bytes in octal.
32.s3
33.lp +3 3
34\fBc\fR interprets bytes in ascii.
35Unknown ascii characters are printed as \\?.
36.s3
37.lp +3 3
38\fBd\fR interprets words in decimal.
39.s3
40.lp +3 3
41\fBh\fR interprets words in hex.
42.s3
43.lp +3 3
44\fBo\fR interprets words in octal.
45.s3
46.s3
47.i0
48The \fIfile\fR argument specifies which file is to be dumped.
49If no file argument is specified,
50the standard input is used.
51Thus
52.it od
53can be used as a filter.
54.s3
55The offset argument specifies the offset
56in the file where dumping is to commence.
57This argument is normally interpreted
58as octal bytes.
59If `\fB.\fR' is appended, the offset is interpreted in
60decimal.
61If `\fBb\fR' is appended, the offset is interpreted in blocks.
62(A block is 512 bytes.)
63If the file argument is omitted,
64the offset argument must be preceded by `\fB+\fR'.
65.s3
66Dumping continues until end-of-file.
67.sh "SEE ALSO"
68db(I)
69.sh BUGS