1 .\" Copyright Andries Brouwer, A. Wik 1998, Ragnar Hojland Espinosa 1998-2002
3 .\" This file may be copied under the conditions described
4 .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
5 .\" that should have been distributed together with this file.
7 .\" Japanese Version Copyright (c) 1999-2003 Yuichi SATO
8 .\" all rights reserved.
9 .\" Translated Sat Oct 16 14:30:53 JST 1999
10 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
11 .\" Updated & Modified Sun Feb 16 16:22:07 JST 2003
12 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
14 .TH DD 1 "18 June 2002" "GNU fileutils 4.1"
17 .\"O dd \- convert and copy a file
22 .B [\-\-help] [\-\-version]
32 .B "[conv={ascii, ebcdic, ibm, block, unblock, lcase, ucase, swab, noerror, notrunc, sync}]"
36 .\"O copies a file (from standard input to standard output, by
37 .\"O default) using specific input and output blocksizes,
38 .\"O while optionally performing conversions on it.
40 はファイルを指定された入出力ブロックサイズで
41 (デフォルトでは標準入力から標準出力へ) コピーする。
44 .\"O It reads the input one block at a time, using the specified input
45 .\"O block size (the default is 512 bytes).
48 .\"O option was given, and no conversion other than
49 .\"O .BR sync ", " noerror ", or " notrunc
50 .\"O was specified, it writes the amount of data read (which could be smaller
51 .\"O than what was requested) in a separate output block. This output block
52 .\"O has precisely the same length as was read unless the
54 .\"O conversion was specified, in which case the data is padded with NULs
55 .\"O or spaces (see below).
57 は指定された入力ブロックサイズ (デフォルトは 512 バイト) で、
61 .BR sync ", " noerror ", " notrunc
63 読み込んだ全データ (要求されたサイズより小さくてもよい)
68 読み込まれたものと正確に同じ長さを持っている。
71 データは NUL またはスペースで埋められる (下記参照)。
73 .\"O Otherwise, the input, read one block at a time, is processed
74 .\"O and the resulting output is collected and written in blocks
75 .\"O of the specified output block size. The final output block
77 それ以外の場合、入力は一度に 1 ブロックずつ読み込まれて処理され、
78 その結果は出力ブロックサイズに指定された大きさごとに書き出される。
81 .\"O The numeric-valued options below (bytes and blocks) can be followed
82 .\"O by a multiplier, as listed in \fBMULTIPLIERS\fR. Two or more of such
83 .\"O numeric expressions can be multiplied by putting \fBx\fR in between.
84 下記の (バイトまたはブロック) といった数値オプションの後ろには、
85 \fB乗数\fRの項目で挙げる乗数を続けて置くことができる。
86 \fBx\fR を間に挟んで、このような数値表記を 2 つ以上掛けあわせることもできる。
93 .\"O instead of standard input.
101 .\"O instead of standard output. Unless
107 .\"O to zero bytes (or the size specified with
117 を (訳注: コピー前に) 0 バイト (もしくは
124 .\"O bytes at a time. The default is 512.
127 バイトずつ読み込む。デフォルトは 512。
132 .\"O bytes at a time. The default is 512.
135 バイトずつ書き出す。デフォルトは 512。
138 .\"O Both read and write
140 .\"O bytes at a time. This overrides
153 .\"O is not equivalent with setting both
157 .\"O to this same value, at least when no conversion other than
162 .\"O is specified, since it stipulates that each input block
163 .\"O shall be copied to the output as a single block
164 .\"O without aggregating short blocks.)
175 の両方をこれと同じ値に設定することと等価ではない。
178 では、各入力ブロックが単一の出力ブロックにコピーされる、
179 すなわち短い複数の入力ブロックをまとめない、
183 .\"O Specify the conversion block size for
196 .\"O blocks in the input file before copying.
200 個分だけ入力ファイルの先頭をスキップする。
206 .\"O blocks in the output file before copying.
217 .\"O blocks from the input file, instead of everything
218 .\"O until the end of the file.
225 .BI "conv=" CONVERSION "[," CONVERSION "]..."
226 .\"O Convert the file as specified by the
228 .\"O argument(s). (No spaces around any comma(s).)
231 で指定されたファイル変換を行う。(コンマの前後にスペースを置かない。)
239 .\"O Convert EBCDIC to ASCII.
240 EBCDIC から ASCII に変換する。
243 .\"O Convert ASCII to EBCDIC.
244 ASCII から EBCDIC に変換する。
247 .\"O Convert ASCII to alternate EBCDIC.
248 ASCII から別の (IBM の) EBCDIC に変換する。
251 .\"O For each line in the input, output
253 .\"O bytes, replacing the input newline with a space and padding
254 .\"O with spaces as necessary.
262 .\"O Replace trailing spaces in each
264 .\"O input block with a newline.
268 末尾の連続した複数の空白文字を一つの改行文字に変換する。
277 .\"O Swap every pair of input bytes.
280 .\"O unlike others, works when an odd number of bytes are read--the last
281 .\"O byte is simply copied (since there is nothing to swap it with).
282 入力バイトの全ての (訳註:2バイトずつの) ペアを入れ換える。
285 は他と違い、奇数個のバイトを読み込んだ場合にも動作する。
287 最後のバイトは (入れ換えるバイトがないので) 単純にコピーされる。
290 .\"O Continue after read errors.
294 .\"O Do not truncate the output file.
297 そのまま先頭バイトから書き込みを行います。
298 入力ファイルと出力ファイルが同じ場合にファイルが壊れません。)
301 .\"O Pad every input block to size of
303 .\"O with trailing zero bytes.
304 .\"O with trailing NULs, unless \fBblock\fR or \fBunblock\fR was used.
305 \fBblock\fR または \fBunblock\fR が指定されていなければ、
308 になるまで連続して NUL (バイト 0) を詰める。
311 .\"O .SH "GNU STANDARD OPTIONS"
315 .\"O Print a usage message on standard output and exit successfully.
316 標準出力に使用方法のメッセージを出力して正常終了する。
319 .\"O Print version information on standard output, then exit successfully.
320 標準出力にバージョン情報を出力して正常終了する。
323 .\"O Terminate option list.
327 .\"O Numbers may be followed by a size letter to specify a multiple of that
328 .\"O size, and a \fBB\fR to select normal bytes or a \fBD\fR to select
329 .\"O decimal "commercial" bytes. For example `1KB' is equal to `1024' and
330 .\"O `1KD' is equal to `1000'. Exceptions are \fBb\fR (512 bytes), \fBc\fR (1
331 .\"O byte), and \fBw\fR (which should never be used - it means 2 in System V and
332 .\"O 4 in 4.2BSD), which can't be followed by a \fBB\fR or \fBD\fR.
333 数値の後には、倍数を指定するサイズ指定文字と、
334 通常のバイトを意味する \fBB\fR または
335 10 進の「商業用」バイトを意味する \fBD\fR を
337 たとえば `1KB' は `1024' と等しく、`1KD' は `1000' と等しい。
338 この例外は \fBb\fR (512 バイト)、\fBc\fR (1 バイト)、
339 \fBw\fR (使うべきでない - System V では 2 を意味し、
340 4.2BSD では 4 を意味する) の 3 つで、
341 これらの後に \fBB\fR や \fBD\fR をおくことはできない。
344 .\"O kilo: 2^10 = 1024 for normal bytes, or 10^3 = 1000 for decimal bytes
345 キロ: 通常バイト指定なら 2^10 = 1024、10 進バイト指定なら 10^3 = 1000
348 .\"O Mega: 2^20 = 1,048,576 or 10^6 = 1,000,000
349 メガ: 2^20 = 1,048,576 または 10^6 = 1,000,000
352 .\"O Giga: 2^30 = 1,073,741,824 or 10^9 = 1,000,000,000
353 ギガ: 2^30 = 1,073,741,824 または 10^9 = 1,000,000,000
356 .\"O Tera: 2^40 = 1,099,511,627,776 or 10^12 = 1,000,000,000,000
357 テラ: 2^40 = 1,099,511,627,776 または 10^12 = 1,000,000,000,000
360 .\"O Peta: 2^50 = 1,125,899,906,842,624 or 10^15 = 1,000,000,000,000,000
361 ペタ: 2^50 = 1,125,899,906,842,624
362 または 10^15 = 1,000,000,000,000,000
365 .\"O Exa: 2^60 = 1,152,921,504,606,846,976 or 10^18 = 1,000,000,000,000,000,000
366 エクサ: 2^60 = 1,152,921,504,606,846,976
367 または 10^18 = 1,000,000,000,000,000,000
370 .\"O Zetta: 2^70 = 1,180,591,620,717,411,303,424 or 10^21 =
371 .\"O 1,000,000,000,000,000,000,000
372 ゼタ: 2^70 = 1,180,591,620,717,411,303,424
373 または 10^21 = 1,000,000,000,000,000,000,000
376 .\"O Yotta: 2^80 = 1,208,925,819,614,629,174,706,176 or 10^24 =
377 .\"O 1,000,000,000,000,000,000,000,000
378 ヨタ: 2^80 = 1,208,925,819,614,629,174,706,176
379 または 10^24 = 1,000,000,000,000,000,000,000,000
382 .\"O The variables LANG, LC_ALL, LC_CTYPE and LC_MESSAGES have the
384 変数 LANG, LC_ALL, LC_CTYPE, LC_MESSAGES が通常の意味を持つ。
385 .\"O .SH "CONFORMING TO"
390 .\"O This page describes
392 .\"O as found in the fileutils-4.1 package;
393 .\"O other versions may differ slightly. Mail corrections and additions to
394 .\"O aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@ragnar-hojland.com
395 .\"O Report bugs in the program to bug-fileutils@gnu.org.
396 このページは fileutils-4.1 パッケージの
399 その他のバージョンでは少し違いがあるかもしれない。
400 修正や追加は aeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com
402 プログラムのバグについては bug-fileutils@gnu.org へ報告してください。