Research V7 development
[unix-history] / usr / man / man1 / od.1
CommitLineData
9945cd97
KT
1.TH OD 1
2.SH NAME
3od \- octal dump
4.SH SYNOPSIS
5.B od
6[
7.B \-bcdox
8] [ file ] [ [
9.B +
10]offset[
11.BR ". " "]["
12\fBb\fR ] ]
13.SH DESCRIPTION
14.I Od
15dumps
16.I file
17in
18one or more formats
19as
20selected by the first argument.
21If the first argument is missing,
22.B \-o
23is default.
24The meanings of the format argument characters
25are:
26.TP 3
27.B b
28Interpret bytes in octal.
29.TP 3
30.B c
31Interpret bytes in ASCII.
32Certain non-graphic characters appear as C escapes:
33null=\e0,
34backspace=\eb,
35formfeed=\ef,
36newline=\en,
37return=\er,
38tab=\et;
39others appear as 3-digit octal numbers.
40.TP 3
41.B d
42Interpret words in decimal.
43.TP 3
44.B o
45Interpret words in octal.
46.TP 3
47.B x
48Interpret words in hex.
49.PP
50The
51.I file
52argument specifies which file is to be dumped.
53If no file argument is specified,
54the standard input is used.
55.PP
56The offset argument specifies the offset
57in the file where dumping is to commence.
58This argument is normally interpreted
59as octal bytes.
60If `\fB.\fR' is appended, the offset is interpreted in
61decimal.
62If `\fBb\fR' is appended, the offset is interpreted in
63blocks of 512 bytes.
64If the file argument is omitted,
65the offset argument must be preceded
66.RB ` + '.
67.PP
68Dumping continues until end-of-file.
69.SH "SEE ALSO"
70adb(1)