1 .\" Copyright (c) 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)od.1 8.1 (Berkeley) 6/6/93
40 .Nd octal, decimal, hex, ASCII dump
43 .Op Fl aBbcDdeFfHhIiLlOosvXx
48 .Op Oo Cm + Oc Ns Ar offset Ns Oo Cm \&. Oc Ns Op Cm Bb
53 utility is a filter which displays the specified files, or standard
54 input if no files are specified, in a user specified format.
56 The options are as follows:
57 .Bl -tag -width ".Fl I , L , l"
59 Specify the input address base.
68 which specify decimal, octal, hexadecimal
69 addresses or no address, respectively.
71 Output named characters.
83 Output C-style escaped characters.
87 Output unsigned decimal ints.
91 Output unsigned decimal shorts.
95 Output double-precision floating point numbers.
99 Output single-precision floating point numbers.
103 Output hexadecimal ints.
107 Output hexadecimal shorts.
111 Output signed decimal longs.
115 Output signed decimal ints.
121 bytes of the combined input before dumping.
122 The number may be followed by one
127 which specify the units of the number as blocks (512 bytes), kilobytes and
128 megabytes, respectively.
138 Output signed decimal shorts.
142 Specify the output format.
146 is a string containing one or more of the following kinds of type specifiers:
147 .Bl -tag -width indent
151 Control characters are displayed using the following names:
152 .Bl -column "000 NUL" "001 SOH" "002 STX" "003 ETX" "004 EOT" "005 ENQ"
153 .It "000 NUL 001 SOH 002 STX 003 ETX 004 EOT 005 ENQ"
154 .It "006 ACK 007 BEL 008 BS 009 HT 00a NL 00b VT"
155 .It "00c FF 00d CR 00e SO 00f SI 010 DLE 011 DC1"
156 .It "012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB"
157 .It "018 CAN 019 EM 01a SUB 01b ESC 01c FS 01d GS"
158 .It "01e RS 01f US 020 SP 0ff DEL"
161 Characters in the default character set.
162 Non-printing characters are
163 represented as 3-digit octal character codes, except the following
164 characters, which are represented as C escapes:
166 .Bl -tag -width carriage-return -compact
183 Multi-byte characters are displayed in the area corresponding to the first
184 byte of the character.
185 The remaining bytes are shown as
190 .Op Cm C | S | I | L | Ar n
202 Followed by an optional size specifier, which may be either
211 or a byte count as a decimal integer.
215 .Op Cm F | D | L | Ar n
218 Floating-point number.
219 Followed by an optional size specifier, which may be either
226 .Pq Vt "long double" .
229 Write all input data, instead of replacing lines of duplicate values with a
233 Multiple options that specify output format may be used; the output will
234 contain one line for each format.
236 If no output format is specified,
244 environment variables affect the execution of
253 option to extract string constants is not supported; consider using