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
33 .\" $FreeBSD: src/usr.bin/hexdump/od.1,v 1.8.2.5 2003/02/25 20:05:17 trhodes Exp $
34 .\" $DragonFly: src/usr.bin/hexdump/od.1,v 1.2 2003/06/17 04:29:27 dillon Exp $
41 .Nd octal, decimal, hex, ASCII dump
44 .Op Fl aBbcDdeFfHhIiLlOosvXx
61 utility is a filter which displays the specified files, or standard
62 input if no files are specified, in a user specified format.
64 The options are as follows:
65 .Bl -tag -width ".Fl I , L , l"
67 Specify the input address base.
75 which specify decimal, octal, hexadecimal
76 addresses or no address, respectively.
78 Output named characters.
90 Output C-style escaped characters.
94 Output unsigned decimal ints.
98 Output double-precision floating point numbers.
102 Output single-precision floating point numbers.
106 Output hexadecimal ints.
110 Output hexadecimal shorts.
114 Output signed decimal longs.
118 Output signed decimal ints.
124 bytes of the combined input before dumping.
125 The number may be followed by one
130 which specify the units of the number as blocks (512 bytes), kilobytes and
131 megabytes, respectively.
141 Output signed decimal shorts.
145 Specify the output format.
147 is a string containing one or more of the following kinds of type specifiers:
148 .Bl -tag -width indent
152 Control characters are displayed using the following names:
153 .Bl -column "000 NUL" "001 SOH" "002 STX" "003 ETX" "004 EOT" "005 ENQ"
154 .It "000 NUL 001 SOH 002 STX 003 ETX 004 EOT 005 ENQ"
155 .It "006 ACK 007 BEL 008 BS 009 HT 00a NL 00b VT"
156 .It "00c FF 00d CR 00e SO 00f SI 010 DLE 011 DC1"
157 .It "012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB"
158 .It "018 CAN 019 EM 01a SUB 01b ESC 01c FS 01d GS"
159 .It "01e RS 01f US 020 SP 0ff DEL"
162 Characters in the default character set.
163 Non-printing characters are
164 represented as 3-digit octal character codes, except the following
165 characters, which are represented as C escapes:
167 .Bl -tag -width carriage-return -compact
186 .Op Cm C | S | I | L | Ar n
198 Followed by an optional size specifier, which may be either
207 or a byte count as a decimal integer.
211 .Op Cm F | D | L | Ar n
214 Floating-point number.
215 Followed by an optional size specifier, which may be either
222 .Pq Vt "long double" .
225 Write all input data, instead of replacing lines of duplicate values with a
229 Multiple options that specify output format may be used; the output will
230 contain one line for each format.
232 If no output format is specified,
240 option to extract string constants is not supported; consider using