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. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)od.1 8.1 (Berkeley) 6/6/93
29 .\" $FreeBSD: src/usr.bin/hexdump/od.1,v 1.8.2.5 2003/02/25 20:05:17 trhodes Exp $
36 .Nd octal, decimal, hex, ASCII dump
39 .Op Fl aBbcDdeFfHhIiLlOosvXx
56 utility is a filter which displays the specified files, or standard
57 input if no files are specified, in a user specified format.
59 The options are as follows:
60 .Bl -tag -width ".Fl I , L , l"
62 Specify the input address base.
70 which specify decimal, octal, hexadecimal
71 addresses or no address, respectively.
73 Output named characters.
85 Output C-style escaped characters.
89 Output unsigned decimal ints.
93 Output double-precision floating point numbers.
97 Output single-precision floating point numbers.
101 Output hexadecimal ints.
105 Output hexadecimal shorts.
109 Output signed decimal longs.
113 Output signed decimal ints.
119 bytes of the combined input before dumping.
120 The number may be followed by one
125 which specify the units of the number as blocks (512 bytes), kilobytes and
126 megabytes, respectively.
136 Output signed decimal shorts.
140 Specify the output format.
142 is a string containing one or more of the following kinds of type specifiers:
143 .Bl -tag -width indent
147 Control characters are displayed using the following names:
148 .Bl -column "000 nulx" "001 sohx" "002 stxx" "003 etxx" "004 eotx" "005 enqx"
149 .It "000 nul" Ta "001 soh" Ta "002 stx" Ta "003 etx" Ta "004 eot" Ta "005 enq"
150 .It "006 ack" Ta "007 bel" Ta "008 bs" Ta "009 ht" Ta "00A nl" Ta "00B vt"
151 .It "00C ff" Ta "00D cr" Ta "00E so" Ta "00F si" Ta "010 dle" Ta "011 dc1"
152 .It "012 dc2" Ta "013 dc3" Ta "014 dc4" Ta "015 nak" Ta "016 syn" Ta "017 etb"
153 .It "018 can" Ta "019 em" Ta "01a sub" Ta "01B esc" Ta "01C fs" Ta "01D gs"
154 .It "01E rs" Ta "01F us" Ta "020 sp" Ta "0FF del" Ta "" Ta ""
157 Characters in the default character set.
158 Non-printing characters are
159 represented as 3-digit octal character codes, except the following
160 characters, which are represented as C escapes:
162 .Bl -tag -width carriage-return -compact
181 .Op Cm C | S | I | L | Ar n
193 Followed by an optional size specifier, which may be either
202 or a byte count as a decimal integer.
206 .Op Cm F | D | L | Ar n
209 Floating-point number.
210 Followed by an optional size specifier, which may be either
217 .Pq Vt "long double" .
220 Write all input data, instead of replacing lines of duplicate values with a
224 Multiple options that specify output format may be used; the output will
225 contain one line for each format.
227 If no output format is specified,
235 option to extract string constants is not supported; consider using