summaryrefslogtreecommitdiff
path: root/man/od.1
blob: bbc36995618135dc83b2aef5d84536b8ea7214a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
.TH OD "1" "March 2007" "GNU coreutils 6.9" "User Commands"
.SH NAME
od \- dump files in octal and other formats
.SH SYNOPSIS
.B od
[\fIOPTION\fR]... [\fIFILE\fR]...
.br
.B od
[\fI-abcdfilosx\fR]... [\fIFILE\fR] [[\fI+\fR]\fIOFFSET\fR[\fI.\fR][\fIb\fR]]
.br
.B od
\fI--traditional \fR[\fIOPTION\fR]... [\fIFILE\fR] [[\fI+\fR]\fIOFFSET\fR[\fI.\fR][\fIb\fR] [\fI+\fR][\fILABEL\fR][\fI.\fR][\fIb\fR]]
.SH DESCRIPTION
.\" Add any additional description here
.PP
Write an unambiguous representation, octal bytes by default,
of FILE to standard output.  With more than one FILE argument,
concatenate them in the listed order to form the input.
With no FILE, or when FILE is \-, read standard input.
.PP
All arguments to long options are mandatory for short options.
.TP
\fB\-A\fR, \fB\-\-address\-radix\fR=\fIRADIX\fR
decide how file offsets are printed
.TP
\fB\-j\fR, \fB\-\-skip\-bytes\fR=\fIBYTES\fR
skip BYTES input bytes first
.TP
\fB\-N\fR, \fB\-\-read\-bytes\fR=\fIBYTES\fR
limit dump to BYTES input bytes
.TP
\fB\-S\fR, \fB\-\-strings\fR[=\fIBYTES\fR]
output strings of at least BYTES graphic chars
.TP
\fB\-t\fR, \fB\-\-format\fR=\fITYPE\fR
select output format or formats
.TP
\fB\-v\fR, \fB\-\-output\-duplicates\fR
do not use * to mark line suppression
.TP
\fB\-w\fR, \fB\-\-width\fR[=\fIBYTES\fR]
output BYTES bytes per output line
.TP
\fB\-\-traditional\fR
accept arguments in traditional form
.TP
\fB\-\-help\fR
display this help and exit
.TP
\fB\-\-version\fR
output version information and exit
.SS "Traditional format specifications may be intermixed; they accumulate:"
.TP
\fB\-a\fR
same as \fB\-t\fR a,  select named characters, ignoring high\-order bit
.TP
\fB\-b\fR
same as \fB\-t\fR o1, select octal bytes
.TP
\fB\-c\fR
same as \fB\-t\fR c,  select ASCII characters or backslash escapes
.TP
\fB\-d\fR
same as \fB\-t\fR u2, select unsigned decimal 2\-byte units
.TP
\fB\-f\fR
same as \fB\-t\fR fF, select floats
.TP
\fB\-i\fR
same as \fB\-t\fR dI, select decimal ints
.TP
\fB\-l\fR
same as \fB\-t\fR dL, select decimal longs
.TP
\fB\-o\fR
same as \fB\-t\fR o2, select octal 2\-byte units
.TP
\fB\-s\fR
same as \fB\-t\fR d2, select decimal 2\-byte units
.TP
\fB\-x\fR
same as \fB\-t\fR x2, select hexadecimal 2\-byte units
.PP
If first and second call formats both apply, the second format is assumed
if the last operand begins with + or (if there are 2 operands) a digit.
An OFFSET operand means \fB\-j\fR OFFSET.  LABEL is the pseudo\-address
at first byte printed, incremented when dump is progressing.
For OFFSET and LABEL, a 0x or 0X prefix indicates hexadecimal;
suffixes may be . for octal and b for multiply by 512.
.PP
TYPE is made up of one or more of these specifications:
.TP
a
named character, ignoring high\-order bit
.TP
c
ASCII character or backslash escape
.TP
d[SIZE]
signed decimal, SIZE bytes per integer
.TP
f[SIZE]
floating point, SIZE bytes per integer
.TP
o[SIZE]
octal, SIZE bytes per integer
.TP
u[SIZE]
unsigned decimal, SIZE bytes per integer
.TP
x[SIZE]
hexadecimal, SIZE bytes per integer
.PP
SIZE is a number.  For TYPE in doux, SIZE may also be C for
sizeof(char), S for sizeof(short), I for sizeof(int) or L for
sizeof(long).  If TYPE is f, SIZE may also be F for sizeof(float), D
for sizeof(double) or L for sizeof(long double).
.PP
RADIX is d for decimal, o for octal, x for hexadecimal or n for none.
BYTES is hexadecimal with 0x or 0X prefix, it is multiplied by 512
with b suffix, by 1024 with k and by 1048576 with m.  Adding a z suffix to
any type adds a display of printable characters to the end of each line
of output.  \fB\-\-string\fR without a number implies 3.  \fB\-\-width\fR without a number
implies 32.  By default, od uses \fB\-A\fR o \fB\-t\fR d2 \fB\-w16\fR.
.SH AUTHOR
Written by Jim Meyering.
.SH "REPORTING BUGS"
Report bugs to <bug\-coreutils@gnu.org>.
.SH COPYRIGHT
Copyright \(co 2007 Free Software Foundation, Inc.
.br
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
The full documentation for
.B od
is maintained as a Texinfo manual.  If the
.B info
and
.B od
programs are properly installed at your site, the command
.IP
.B info od
.PP
should give you access to the complete manual.