1 .\" $NetBSD: od.1,v 1.27 2012/07/06 09:05:26 wiz Exp $
3 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd octal, decimal, hex, ascii dump
38 .Op Fl aBbcDdeFfHhIiLlOovXx
42 .Op Fl t Ar type_string
55 utility is a filter which displays each specified
57 or the standard input if no
59 arguments are specified, in a user specified
62 The options are as follows:
65 Specify the input address base.
73 which specify decimal, octal, hexadecimal
74 addresses or no address, respectively.
76 .Em One-byte character display .
77 Display the input offset in octal, followed by sixteen
78 space-separated, three column, space-filled, characters of input data
80 Control characters are printed as their names instead of as
86 .Em One-byte octal display .
87 Display the input offset in octal, followed by sixteen
88 space-separated, three column, zero-filled, bytes of input data, in
90 This is the default output style if no other is
93 .Em One-byte character display .
94 Display the input offset in octal, followed by sixteen
95 space-separated, three column, space-filled, characters of input data
97 Control characters are printed at C-style escapes, or as
98 three octal digits, if no C escape exists for the character.
100 .Em Two-byte decimal display .
101 Display the input offset in octal, followed by eight
102 space-separated, five column, zero-filled, two-byte units
103 of input data, in unsigned decimal, per line.
105 .Em Eight-byte floating point display .
106 Display the input offset in octal, followed by two space-separated,
107 twenty-one column, space filled, eight byte units of input data, in
108 floating point, per line.
113 .Em Four-byte floating point display .
114 Display the input offset in octal, followed by four space-separated,
115 14 column, space filled, four byte units of input data, in floating
118 .Em Four-byte hex display .
119 Display the input offset in octal, followed by four space-separated,
120 eight column, zero filled, four byte units of input data, in hex,
123 .Em Two-byte hex display .
124 Display the input offset in octal, followed by eight space-separated,
125 four column, zero filled, two byte units of input data, in hex,
128 .Em Four-byte decimal display .
129 Display the input offset in octal, followed by four space-separated,
130 eleven column, space filled, four byte units of input data, in
133 .Em Two-byte decimal display .
134 Display the input offset in octal, followed by eight space-separated,
135 six column, space filled, two-byte units of input data, in decimal,
140 bytes from the beginning of the input.
143 is interpreted as a decimal number.
149 is interpreted as a hexadecimal number;
150 otherwise, with a leading
153 is interpreted as an octal number.
154 Appending the character
161 causes it to be interpreted as a multiple of
178 .Em Four-byte octal display .
179 Display the input offset in octal, followed by four
180 space-separated, eleven column, zero-filled, four-byte units
181 of input data, in octal, per line.
183 .Em Two-byte octal display .
184 Display the input offset in octal, followed by eight
185 space-separated, six column, zero-filled, two-byte units
186 of input data, in octal, per line.
187 .It Fl t Ar type_string
188 Specify one or more output types.
191 option-argument must be a string specifying the types to be used when
192 writing the input data.
193 The string must consist of the type specification characters:
196 selects US-ASCII output, with control characters replaced with their
197 names instead of as C escape sequences.
200 conversion provided by
204 selects a standard character based conversion.
207 conversion provided by
211 selects the floating point output format.
212 This type character can be optionally followed by the characters
216 to specify four byte floating point output, or
220 to specify eight byte floating point output.
221 The default output format is eight byte floats.
224 conversion provided by
232 select decimal, octal, unsigned decimal, or hex output respectively.
233 These types can optionally be followed by
251 to specify one-byte output,
253 to specify two-byte output,
255 to specify four-byte output, or
257 to specify eight-byte output.
258 The default output format is in four-byte quantities.
265 conversions provided by
267 .\"(a|c|f[FLD]?|[doux][C1S2I4L8]?)*
273 to display all input data.
276 option, any number of groups of output lines, which would be
277 identical to the immediately preceding group of output lines (except
278 for the input offsets), are replaced with a line comprised of a
291 sequentially copies the input to standard output, transforming the
292 data according to the options given.
293 If no options are specified, the
294 default display is equivalent to specifying the
308 This man page was initially written in February 2001 by Andrew Brown, shortly
309 after he augmented the deprecated
311 syntax to include things he felt
312 had been missing for a long time.