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.17 2004/07/11 01:11:12 tjr Exp $
40 .Nd octal, decimal, hex, ASCII dump
43 .Op Fl aBbcDdeFfHhIiLlOosvXx
60 utility is a filter which displays the specified files, or standard
61 input if no files are specified, in a user specified format.
63 The options are as follows:
64 .Bl -tag -width ".Fl I , L , l"
66 Specify the input address base.
74 which specify decimal, octal, hexadecimal
75 addresses or no address, respectively.
77 Output named characters.
89 Output C-style escaped characters.
93 Output unsigned decimal ints.
97 Output double-precision floating point numbers.
101 Output single-precision floating point numbers.
105 Output hexadecimal ints.
109 Output hexadecimal shorts.
113 Output signed decimal longs.
117 Output signed decimal ints.
123 bytes of the combined input before dumping.
124 The number may be followed by one
129 which specify the units of the number as blocks (512 bytes), kilobytes and
130 megabytes, respectively.
140 Output signed decimal shorts.
144 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. The remaining bytes are shown as
189 .Op Cm C | S | I | L | Ar n
201 Followed by an optional size specifier, which may be either
210 or a byte count as a decimal integer.
214 .Op Cm F | D | L | Ar n
217 Floating-point number.
218 Followed by an optional size specifier, which may be either
225 .Pq Vt "long double" .
228 Write all input data, instead of replacing lines of duplicate values with a
232 Multiple options that specify output format may be used; the output will
233 contain one line for each format.
235 If no output format is specified,
243 environment variables affect the execution of
252 option to extract string constants is not supported; consider using