File: hexdump.1

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (350 lines) | stat: -rw-r--r-- 10,759 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
.\" Copyright (c) 1989, 1990, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"	from: @(#)hexdump.1	8.2 (Berkeley) 4/18/94
.\"
.\" Japanese Version Copyright (c) 2001-2002 Yuichi SATO
.\"         all rights reserved.
.\" Translated Tue 11 Jan 1994
.\"         by NetBSD jman proj. <jman@spa.is.uec.ac.jp>
.\" Updated Sun Jan 14 00:49:38 JST 2001
.\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
.\" Updated Sun Mar 24 11:54:42 JST 2002
.\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
.\"
.Dd April 18, 1994
.Dt HEXDUMP 1
.Os
.Sh ̾
.Nm hexdump
.Nd ASCII, 10 , 16 , 8 ʤǥפ
.Sh 
.Nm
.Op Fl bcCdovx
.Bk -words
.Op Fl e Ar format_string
.Ek
.Bk -words
.Op Fl f Ar format_file
.Ek
.Bk -words
.Op Fl n Ar length
.Ek
.Bk -words
.Op Fl s Ar skip
.Ek
.Ar file ...
.Sh 
hexdump 桼ƥƥϡꤷե
桼ꤷեޥåȤɽե륿Ǥ롣
ե뤬ꤵƤʤϡɸϤɤ߹ǥեޥåȤ롣
.Pp
ץȤƤϰʲΤΤ:
.Bl -tag -width Fl
.It Fl b
.Em 1 Хñ̤ 8 ʿɽ
ϥեåȤ 16 ʿɽ
θˡϥǡ 1 ХȤĤ
0 ǻͤᤷ 3  8 ʿɽ
 1  16 ġǶڤäɽ롣
.It Fl c
.Em 1 Хñ̤Υ饯ɽ
ϥեåȤ 16 ʿɽ
θˡϥǡΥ饯
ǻͤᤷ 3  ( ASCII ʸ) ɽ
 1  16 ġǶڤäɽ롣
.It Fl C
.Em ɸŪ 16ʿ + ASCII Ǥɽ
ϥեåȤ 16 ʿɽ
θˡϥǡΥ饯 2  16 ʿɽ
 1  16 ġǶڤäɽ롣
θˡ``|'' ǰϤޤ줿Ʊ 16 ХȤ
%_p եޥåȤɽ롣
.It Fl d
.Em 2 Хñ̤ 10 ʿɽ
ϥեåȤ 16 ʿɽ
θˡϥǡ 2 Хñ̤
0 ǻͤᤷ 5 ʤ 10 ʿɽ
 1  8 ġǶڤäɽ롣
.It Fl e Ar format_string 
ǡɽ뤿˻Ȥեޥåʸꤹ롣
.It Fl f Ar format_file 
1 İʾΥեޥåʸ (ԤǶڤ) ν񤫤줿եꤹ롣
ԡޤ϶ǽʸϥåޡ
.Pf ( Cm \&# )
ǤԤ̵뤵롣
.It Fl n Ar length 
Ϥ
.Ar length
Хʬ롣
.It Fl o
.Em 2 Хñ̤ 8 ʿɽ
ϥեåȤ 16 ʿɽ
θˡ 2 Хñ̤
0 ǻͤᤷ 6  8 ʿɽ
 1  8 ġǶڤäɽ롣
.It Fl s Ar offset 
ϤƬ
.Ar offset
ХȤɤФ
ǥեȤǤ
.Ar offset
 10 ʿȤƲᤵ롣
Ƭ
.Cm 0x
ޤ
.Cm 0X
դ硢
.Ar offset
 16 ʿȤƲᤵ롣
Ƭ
.Cm 0
դ硢
.Ar offset
 8 ʿȤƲᤵ롣
.Ar offset
θ
.Cm b ,
.Cm k ,
.Cm m
դ硢줾
.Li 512 ,
.Li 1024 ,
.Li 1048576
ܤǤȲᤵ褦ˤʤ롣
.It Fl v
.Fl v
ץꤹȡhexdump ФƤϥǡɽ롣
.Fl v
ץꤷʤ硢
ľνϹԤƱƤι (ϥեåȤϽ) ϡ
ԤǤäƤ⡢
1 ĤΥꥹ񤫤줿Ԥ֤롣
.It Fl x
.Em 2 Хñ̤ 16 ʿɽ
ϥեåȤ 16 ʿɽ
θˡ 2 Хñ̤
0 ǻͤᤷ 4  16 ʿɽ
 1  8 ġǶڤäɽ롣
.El
.Pp
ϥեФơ
.Nm
ϡϥե뤬ꤵ줿֤ǡ
.Fl e

.Fl f
ץǻꤵ줿եޥåʸ˴ŤѴʤ
³ɸϤ˽񤭽ФƤ
.Ss եޥå
եޥåʸϡǶڤ줿ǤդθĿ
եޥåñ̤ޤǤ롣
եޥåñ̤Ϻ 3 ĤǡĤޤꡢ
֤ХȿեޥåȤޤǤ롣
.Pp
֤ϡץȤƻꤵǤ롣
ǥեȤ 1 Ǥ롣
ƥեޥåȤϷ֤ŬѤ롣
.Pp
ХȿϡץȤƻꤵǤ롣
줬ꤵ줿硢
1 ĤΥեޥåȤǽХȿ򼨤
.Pp
֤ȥХȿ (ξ⤷Ϥɤ餫) ꤵ줿硢
ɤο̤뤿ˡ
֤θȥХȿ˥å 1 ֤ʤФʤʤ
åζ̵뤵롣
.Pp
եޥåȤɬܤǡ֥륯ȥޡ (" ") ǰϤޤʤФʤʤ
ΥեޥåȤϡfprintf Υեޥåʸ
.Ns ( Xr fprintf 3
򻲾) ȤƲᤵ뤬
ʲΤ褦㳰:
.Bl -bullet -offset indent
.It
եɤ٤Ȥƥꥹ (*) Ȥʤ
.It
ġѴʸ ``s'' ˤĤơХȿե٤ɬܤǤ
(٤ꤵƤʤƤʸɽ
.Xr fprintf 3
ΥǥեȤȤϰۤʤ)
.It
Ѵʸ ``h'', ``l'', ``n'', ``p'', ``q'' ݡȤƤʤ
.It
C ɸ൬ʤǵҤƤ
1 ʸΥץ󥹤ݡȤƤ:
.Bd -ragged -offset indent -compact
.Bl -column <alert_character>
.It NUL	\e0
.It <顼ʸ>	\ea
.It <Хåڡ>	\eb
.It <եե>	\ef
.It <>	\en
.It <>	\er
.It <>	\et
.It <ľ>	\ev
.El
.Ed
.El
.Pp
hexdump ϡ¾ˤʲѴʸ򥵥ݡȤ:
.Bl -tag -width Fl
.It Cm \&_a Ns Op Cm dox 
ɽХȤΥեå
(ʣϥե̻) ɽ롣
ʸ
.Cm d ,
.Cm o ,
.Cm x
ղäȡɽκݤδ줾 10, 8, 16 ʿ˻ꤵ롣
.It Cm \&_A Ns Op Cm dox 
Ѵʸ
.Cm \&_a
ȤۤƱ
ѴƤϥǡ줿 1 ¹Ԥ롣
.It Cm \&_c
ǥեʸåȤʸǽϤ롣
ɽǽʸϡ0 ǻͤᤷ 3  8 ʿɽ롣
ɸ२ɽɽʸ (嵭򻲾) ϡ
 2 ʸʸɽ롣
.It Cm _p
ǥեʸåȤʸǽϤ롣
ɽǽʸϡ1 Ĥ
.Dq Cm \&.
Ȥɽ롣
.It Cm _u
US ASCII ʸǽϤ롣
ʸϰʲΤ褦ʾʸ̾Ȥäɽ롣
16 ʿ 0xff 礭ʸϡ
16 ʿʸȤɽ롣
.Bl -column \&000_nu \&001_so \&002_st \&003_et \&004_eo
.It \&000\ nul\t001\ soh\t002\ stx\t003\ etx\t004\ eot\t005\ enq
.It \&006\ ack\t007\ bel\t008\ bs\t009\ ht\t00A\ lf\t00B\ vt
.It \&00C\ ff\t00D\ cr\t00E\ so\t00F\ si\t010\ dle\t011\ dc1
.It \&012\ dc2\t013\ dc3\t014\ dc4\t015\ nak\t016\ syn\t017\ etb
.It \&018\ can\t019\ em\t01A\ sub\t01B\ esc\t01C\ fs\t01D\ gs
.It \&01E\ rs\t01F\ us\t0FF\ del
.El
.El
.Pp
ѴʸǻȤǥեȤΥХȿȥݡȤХȿϡ
ʲ̤Ǥ롣
.Bl -tag -width  "Xc,_Xc,_Xc,_Xc,_Xc,_Xc" -offset indent
.It Li \&%_c , \&%_p , \&%_u , \&%c
1 ХȤΤߡ
.It Xo
.Li \&%d , \&%i , \&%o ,
.Li \&%u , \&%X , \&%x 
.Xc
4 ХȤǥեȡ1, 2, 4 ХȤݡȤƤ롣
.It Xo
.Li \&%E , \&%e , \&%f ,
.Li \&%G , \&%g 
.Xc
8 ХȤǥեȡ4 ХȤݡȤƤ롣
.El
.Pp
ƥեޥåʸˤäƽǡ̤ϡ
ƥեޥåñ̤ɬפȤǡιפǤ롣
ιפ (֤)(Хȿ) Ǥ롣
ޤХȿꤵƤʤϡ
(֤)(եޥåȤɬפȤƤХȿ) Ǥ롣
.Pp
Ϥϡ֥֥åפȤ롣
֥åϡեޥåʸǻꤵ
ǡβΤǺΤΡ롣
ϥ֥åΥǡ꾯ʤХȿƤʤեޥåʸǡ
κǸΥեޥåñ̤ǿХȤ
ķ֤ꤵƤʤ硢
ϥ֥åΤ뤫
եޥåʸ˹פǡ֥åˤʤʤޤǡ
֤ä롣
.Pp
桼λꡢ
ޤ hexdump 褦˷֤ѹ̡
֤ 2 ʾˤʤä硢
Ǹη֤ˤζϽϤʤ
.Pp
ХȿʣѴʸȶ˻ꤹȡ
1 ĤƤѴʸ
.Cm \&_a
ޤ
.Cm \&_A
Ǥʳϡ顼ˤʤ롣
.Pp
.Fl n
ץǻꤷХȿʬޤϥե뽪üãȤˡ
ϥǡեޥåʸΰʬˤʤ硢
ͭʥǡɽ뤿ˡϥ֥åˤŬڤʿ 0 
(ʤǡνüˤޤäƤեޥåñ̤ϡ
Ĥ 0 ΥХȤɽ)
.Pp
Τ褦ʥեޥåʸˤ뤵ʤϤϡ
ζ֤롣
ζȤϡѴʸȥե٤Ʊǡ
Ѵե饰ʸ
.Dq Li \&+ ,
.Dq \&\ \& ,
.Dq Li \&#

.Cm s
Ѵʸ NULL ʸ򻲾Ȥ˽ϤζǤ롣
.Pp
եޥåʸ󤬻ꤵʤ硢
ǥեȤɽ
.Fl x
ץꤷƱǤ롣
.Pp
.Nm
 0 ֤ƽλ롣
顼äϡ1 ʾ֤ƽλ롣
.Sh 
Ϥ perusal (ܤ) եޥåȤɽ:
.Bd -literal -offset indent
"%06.6_ao "  12/1 "%3_u "
"\et\et" "%_p "
"\en"
.Ed
.Pp
\-x ץ:
.Bd -literal -offset indent
"%07.7_Ax\en"
"%07.7_ax  " 8/2 "%04x " "\en"
.Ed
.Sh 
.Nm
桼ƥƥ
.St -p1003.2
Ŭ礷ƤϤǤ롣
.Sh Լռ
 man ڡˤꡢ
FreeBSD jpman project <http://www.jp.freebsd.org/man-jp/>
ˤ򻲹ͤˤƤ