1 |
perry |
1 |
OD |
|
|
2 |
!!!OD |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
AUTHOR |
|
|
7 |
REPORTING BUGS |
|
|
8 |
COPYRIGHT |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
od - dump files in octal and other formats |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__od__ [[''OPTION'']... [[''FILE'']...__ |
|
|
19 |
od__ ''--traditional'' [[''FILE''] |
|
|
20 |
[[[[''+'']''OFFSET'' |
|
|
21 |
[[[[''+'']''LABEL'']] |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
Write an unambiguous representation, octal bytes by default, |
|
|
26 |
of FILE to standard output. With no FILE, or when FILE is -, |
|
|
27 |
read standard input. |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
__-A__, __--address-radix__=''RADIX'' |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
decide how file offsets are printed |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
__-j__, __--skip-bytes__=''BYTES'' |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
skip BYTES input bytes first on each file |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
__-N__, __--read-bytes__=''BYTES'' |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
limit dump to BYTES input bytes per file |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
__-s__, __--strings__[[=''BYTES''] |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
output strings of at least BYTES graphic chars |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
__-t__, __--format__=''TYPE'' |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
select output format or formats |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
__-v__, __--output-duplicates__ |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
do not use * to mark line suppression |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
__-w__, __--width__[[=''BYTES''] |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
output BYTES bytes per output line |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
__--traditional__ |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
accept arguments in pre-POSIX form |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
__--help__ |
|
|
79 |
|
|
|
80 |
|
|
|
81 |
display this help and exit |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
__--version__ |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
output version information and exit |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
__Pre-POSIX format specifications may be intermixed, they |
|
|
91 |
accumulate:__ |
|
|
92 |
|
|
|
93 |
|
|
|
94 |
__-a__ |
|
|
95 |
|
|
|
96 |
|
|
|
97 |
same as __-t__ a, select named characters |
|
|
98 |
|
|
|
99 |
|
|
|
100 |
__-b__ |
|
|
101 |
|
|
|
102 |
|
|
|
103 |
same as __-t__ oC, select octal bytes |
|
|
104 |
|
|
|
105 |
|
|
|
106 |
__-c__ |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
same as __-t__ c, select ASCII characters or backslash |
|
|
110 |
escapes |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
__-d__ |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
same as __-t__ u2, select unsigned decimal |
|
|
117 |
shorts |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
__-f__ |
|
|
121 |
|
|
|
122 |
|
|
|
123 |
same as __-t__ fF, select floats |
|
|
124 |
|
|
|
125 |
|
|
|
126 |
__-h__ |
|
|
127 |
|
|
|
128 |
|
|
|
129 |
same as __-t__ x2, select hexadecimal shorts |
|
|
130 |
|
|
|
131 |
|
|
|
132 |
__-i__ |
|
|
133 |
|
|
|
134 |
|
|
|
135 |
same as __-t__ d2, select decimal shorts |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
__-l__ |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
same as __-t__ d4, select decimal longs |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
__-o__ |
|
|
145 |
|
|
|
146 |
|
|
|
147 |
same as __-t__ o2, select octal shorts |
|
|
148 |
|
|
|
149 |
|
|
|
150 |
__-x__ |
|
|
151 |
|
|
|
152 |
|
|
|
153 |
same as __-t__ x2, select hexadecimal shorts |
|
|
154 |
|
|
|
155 |
|
|
|
156 |
For older syntax (second call format), OFFSET means |
|
|
157 |
__-j__ OFFSET. LABEL is the pseudo-address at first byte |
|
|
158 |
printed, incremented when dump is progressing. For OFFSET |
|
|
159 |
and LABEL, a 0x or 0X prefix indicates hexadecimal, suffixes |
|
|
160 |
maybe . for octal and b multiply by 512. |
|
|
161 |
|
|
|
162 |
|
|
|
163 |
TYPE is made up of one or more of these |
|
|
164 |
specifications: |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
a |
|
|
168 |
|
|
|
169 |
|
|
|
170 |
named character |
|
|
171 |
|
|
|
172 |
|
|
|
173 |
c |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
ASCII character or backslash escape |
|
|
177 |
|
|
|
178 |
|
|
|
179 |
d[[SIZE] |
|
|
180 |
|
|
|
181 |
|
|
|
182 |
signed decimal, SIZE bytes per integer |
|
|
183 |
|
|
|
184 |
|
|
|
185 |
f[[SIZE] |
|
|
186 |
|
|
|
187 |
|
|
|
188 |
floating point, SIZE bytes per integer |
|
|
189 |
|
|
|
190 |
|
|
|
191 |
o[[SIZE] |
|
|
192 |
|
|
|
193 |
|
|
|
194 |
octal, SIZE bytes per integer |
|
|
195 |
|
|
|
196 |
|
|
|
197 |
u[[SIZE] |
|
|
198 |
|
|
|
199 |
|
|
|
200 |
unsigned decimal, SIZE bytes per integer |
|
|
201 |
|
|
|
202 |
|
|
|
203 |
x[[SIZE] |
|
|
204 |
|
|
|
205 |
|
|
|
206 |
hexadecimal, SIZE bytes per integer |
|
|
207 |
|
|
|
208 |
|
|
|
209 |
SIZE is a number. For TYPE in doux, SIZE may also be C for |
|
|
210 |
sizeof(char), S for sizeof(short), I for sizeof(int) or L |
|
|
211 |
for sizeof(long). If TYPE is f, SIZE may also be F for |
|
|
212 |
sizeof(float), D for sizeof(double) or L for sizeof(long |
|
|
213 |
double). |
|
|
214 |
|
|
|
215 |
|
|
|
216 |
RADIX is d for decimal, o for octal, x for hexadecimal or n |
|
|
217 |
for none. BYTES is hexadecimal with 0x or 0X prefix, it is |
|
|
218 |
multiplied by 512 with b suffix, by 1024 with k and by |
|
|
219 |
1048576 with m. Adding a z suffix to any type adds a display |
|
|
220 |
of printable characters to the end of each line of output. |
|
|
221 |
__-s__ without a number implies 3. __-w__ without a |
|
|
222 |
number implies 32. By default, od uses __-A__ o __-t__ |
|
|
223 |
d2 __-w__ 16. |
|
|
224 |
!!AUTHOR |
|
|
225 |
|
|
|
226 |
|
|
|
227 |
Written by Jim Meyering. |
|
|
228 |
!!REPORTING BUGS |
|
|
229 |
|
|
|
230 |
|
|
|
231 |
Report bugs to |
|
|
232 |
!!COPYRIGHT |
|
|
233 |
|
|
|
234 |
|
|
|
235 |
Copyright 1999 Free Software Foundation, Inc. |
|
|
236 |
This is free software; see the source for copying |
|
|
237 |
conditions. There is NO warranty; not even for |
|
|
238 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
|
239 |
PURPOSE. |
|
|
240 |
!!SEE ALSO |
|
|
241 |
|
|
|
242 |
|
|
|
243 |
The full documentation for __od__ is maintained as a |
|
|
244 |
Texinfo manual. If the __info__ and __od__ programs |
|
|
245 |
are properly installed at your site, the |
|
|
246 |
command |
|
|
247 |
|
|
|
248 |
|
|
|
249 |
__info od__ |
|
|
250 |
|
|
|
251 |
|
|
|
252 |
should give you access to the complete manual. |
|
|
253 |
---- |