<STATUS> stat: DP ppkg: GNU diffutils 3.8 page: diff.1 date: 2021/08/01 mail: michio_matsu****@yahoo***** name: Michio MATSUYAMA </STATUS> # draft ファイルは git リポジトリを参照。 manual/GNU_diffutils/draft/man1/diff.1 [原文] .TH DIFF "1" "August 2021" "diffutils 3.8" "User Commands" [訳文] .TH DIFF 1 2021/08 "diffutils 3.8" ユーザーコマンド ---------------------------------------- [原文] .SH NAME diff - compare files line by line [訳文] .SH 名前 diff - ファイルの行単位での比較 ---------------------------------------- [原文] .SH SYNOPSIS .B diff [OPTION]... FILES [訳文] .SH 書式 diff [OPTION]... FILES ---------------------------------------- [原文] .SH DESCRIPTION Compare FILES line by line. [訳文] .SH 説明 FILES を行単位で比較します。 ---------------------------------------- [原文] .PP Mandatory arguments to long options are mandatory for short options too. [訳文] .PP ロングオプションにおいて必須の引数であるものは、 ショートオプションにおいても必須です。 ---------------------------------------- [原文] .TP --normal output a normal diff (the default) [訳文] .TP --normal 通常の diff 形式で出力します (デフォルト)。 ---------------------------------------- [原文] .TP -q, --brief report only when files differ [訳文] .TP -q, --brief ファイルに違いがあった場合のみ報告します。 ---------------------------------------- [原文] .TP -s, --report-identical-files report when two files are the same [訳文] .TP -s, --report-identical-files 2 つのファイルが同じであった場合に報告します。 ---------------------------------------- [原文] .TP -c, -C NUM, --context[=NUM] output NUM (default 3) lines of copied context [訳文] .TP -c, -C NUM, --context[=NUM] コンテキスト形式を使用し、 前後の NUM 行 (デフォルトは 3 行) を出力します。 ---------------------------------------- [原文] .TP -u, -U NUM, --unified[=NUM] output NUM (default 3) lines of unified context [訳文] .TP -u, -U NUM, --unified[=NUM] ユニファイド (unified) 形式を使用し、 前後の NUM 行 (デフォルトは 3 行) を出力します。 ---------------------------------------- [原文] .TP -e, --ed output an ed script [訳文] .TP -e, --ed ed スクリプトを出力します。 ---------------------------------------- [原文] .TP -n, --rcs output an RCS format diff [訳文] .TP -n, --rcs RCS 形式の diff を出力します。 ---------------------------------------- [原文] .TP -y, --side-by-side output in two columns [訳文] .TP -y, --side-by-side 2 段組で出力します。 ---------------------------------------- [原文] .TP -W, --width=NUM output at most NUM (default 130) print columns [訳文] .TP -W, --width=NUM NUM カラム以内で出力します (デフォルトは 130)。 ---------------------------------------- [原文] .TP --left-column output only the left column of common lines [訳文] .TP --left-column 2 段組出力において共通する行は左側のみ表示します。 ---------------------------------------- [原文] .TP --suppress-common-lines do not output common lines [訳文] .TP --suppress-common-lines 共通する行は表示しません。 ---------------------------------------- [原文] .TP -p, --show-c-function show which C function each change is in [訳文] .TP -p, --show-c-function それぞれの変更箇所が、 どの C 関数内であるかを表示します。 ---------------------------------------- [原文] .TP -F, --show-function-line=RE show the most recent line matching RE [訳文] .TP -F, --show-function-line=RE RE に一致した直近の行を表示します。 ---------------------------------------- [原文] .TP --label LABEL use LABEL instead of file name and timestamp (can be repeated) [訳文] .TP --label LABEL ファイル名とタイムスタンプの代わりに LABEL を使います (複数指定可)。 ---------------------------------------- [原文] .TP -t, --expand-tabs expand tabs to spaces in output [訳文] .TP -t, --expand-tabs 出力にあたってタブ文字を空白文字に展開します。 ---------------------------------------- [原文] .TP -T, --initial-tab make tabs line up by prepending a tab [訳文] .TP -T, --initial-tab タブ文字を出力することで、タブ位置を揃えます。 ---------------------------------------- [原文] .TP --tabsize=NUM tab stops every NUM (default 8) print columns [訳文] .TP --tabsize=NUM タブ位置を NUM カラムごとに設定します (デフォルトは 8)。 ---------------------------------------- [原文] .TP --suppress-blank-empty suppress space or tab before empty output lines [訳文] .TP --suppress-blank-empty 空の出力行に対して、空白文字やタブ文字の出力を行いません。 ---------------------------------------- [原文] .TP -l, --paginate pass output through 'pr' to paginate it [訳文] .TP -l, --paginate ページ付けのために出力を 'pr' に受け渡します。 ---------------------------------------- [原文] .TP -r, --recursive recursively compare any subdirectories found [訳文] .TP -r, --recursive 再帰的にサブディレクトリ内を比較します。 ---------------------------------------- [原文] .TP --no-dereference don't follow symbolic links [訳文] .TP --no-dereference シンボリックリンクはたどりません。 ---------------------------------------- [原文] .TP -N, --new-file treat absent files as empty [訳文] .TP -N, --new-file 存在しないファイルは空のファイルとして扱います。 ---------------------------------------- [原文] .TP --unidirectional-new-file treat absent first files as empty [訳文] .TP --unidirectional-new-file 存在しなかった最初のファイルは空のファイルとして扱います。 ---------------------------------------- [原文] .TP --ignore-file-name-case ignore case when comparing file names [訳文] .TP --ignore-file-name-case ファイル名の比較にあたって英大文字小文字を区別しません。 ---------------------------------------- [原文] .TP --no-ignore-file-name-case consider case when comparing file names [訳文] .TP --no-ignore-file-name-case ファイル名の比較にあたって英大文字小文字を区別します。 ---------------------------------------- [原文] .TP -x, --exclude=PAT exclude files that match PAT [訳文] .TP -x, --exclude=PAT PAT に一致するファイルを除外します。 ---------------------------------------- [原文] .TP -X, --exclude-from=FILE exclude files that match any pattern in FILE [訳文] .TP -X, --exclude-from=FILE FILE 内に記述されているいずれかのパターンに一致するファイルを除外 します。 ---------------------------------------- [原文] .TP -S, --starting-file=FILE start with FILE when comparing directories [訳文] .TP -S, --starting-file=FILE ディレクトリ比較を行う際に FILE から処理を始めます。 ---------------------------------------- [原文] .TP --from-file=FILE1 compare FILE1 to all operands; FILE1 can be a directory [訳文] .TP --from-file=FILE1 FILE1 とすべての引数の間での比較を行います。 FILE1 はディレクトリとすることができます。 ---------------------------------------- [原文] .TP --to-file=FILE2 compare all operands to FILE2; FILE2 can be a directory [訳文] .TP --to-file=FILE2 すべての引数と FILE2 との間での比較を行います。FILE2 はディレクトリとすることができます。 ---------------------------------------- [原文] .TP -i, --ignore-case ignore case differences in file contents [訳文] .TP -i, --ignore-case ファイル内容において、大文字小文字を区別しません。 ---------------------------------------- [原文] .TP -E, --ignore-tab-expansion ignore changes due to tab expansion [訳文] .TP -E, --ignore-tab-expansion タブ展開による違いを無視します。 ---------------------------------------- [原文] .TP -Z, --ignore-trailing-space ignore white space at line end [訳文] .TP -Z, --ignore-trailing-space 行末のホワイトスペースは無視します。 ---------------------------------------- [原文] .TP -b, --ignore-space-change ignore changes in the amount of white space [訳文] .TP -b, --ignore-space-change ホワイトスペース数の違いを無視します。 ---------------------------------------- [原文] .TP -w, --ignore-all-space ignore all white space [訳文] .TP -w, --ignore-all-space ホワイトスペースをすべて無視します。 ---------------------------------------- [原文] .TP -B, --ignore-blank-lines ignore changes where lines are all blank [訳文] .TP -B, --ignore-blank-lines 空行だけの違いは無視します。 ---------------------------------------- [原文] .TP -I, --ignore-matching-lines=RE ignore changes where all lines match RE [訳文] .TP -I, --ignore-matching-lines=RE RE に一致する行は、 違いがないものとして無視します。 ---------------------------------------- [原文] .TP -a, --text treat all files as text [訳文] .TP -a, --text ファイルはすべてテキストファイルであるとして扱います。 ---------------------------------------- [原文] .TP --strip-trailing-cr strip trailing carriage return on input [訳文] .TP --strip-trailing-cr 入力における文末のキャリッジリターンを取り除きます。 ---------------------------------------- [原文] .TP -D, --ifdef=NAME output merged file with '#ifdef NAME' diffs [訳文] .TP -D, --ifdef=NAME '#ifdef NAME' diff を使ったマージ結果を出力します。 ---------------------------------------- [原文] .TP --GTYPE-group-format=GFMT format GTYPE input groups with GFMT [訳文] .TP --GTYPE-group-format=GFMT GTYPE 入力グループを GFMT を使ってフォーマットします。 ---------------------------------------- [原文] .TP --line-format=LFMT format all input lines with LFMT [訳文] .TP --line-format=LFMT 入力行を LFMT を使ってフォーマットします。 ---------------------------------------- [原文] .TP --LTYPE-line-format=LFMT format LTYPE input lines with LFMT [訳文] .TP --LTYPE-line-format=LFMT LTYPE 入力グループを LFMT を使ってフォーマットします。 ---------------------------------------- [原文] .IP These format options provide fine-grained control over the output [訳文] .IP このフォーマットオプションは、 出力を詳細に制御します。 ---------------------------------------- [原文] .IP of diff, generalizing -D/--ifdef. [訳文] .IP これは -D/--ifdef を一般化したものです。 ---------------------------------------- [原文] .TP LTYPE is 'old', 'new', or 'unchanged'. GTYPE is LTYPE or 'changed'. [訳文] .TP LTYPE は 'old', 'new', 'unchanged' のいずれかです。 GTYPE は、 LTYPE に 'changed' を加えたもののいずれかです。 ---------------------------------------- [原文] .IP GFMT (only) may contain: [訳文] .IP GFMT において (のみ) 指定できるもの ---------------------------------------- [原文] .TP %< lines from FILE1 [訳文] .TP %< FILE1 の行 ---------------------------------------- [原文] .TP %> lines from FILE2 [訳文] .TP %> FILE2 の行 ---------------------------------------- [原文] .TP %= lines common to FILE1 and FILE2 [訳文] .TP %= FILE1 と FILE2 に共通する行 ---------------------------------------- [原文] .TP %[-][WIDTH][.[PREC]]{doxX}LETTER printf-style spec for LETTER [訳文] .TP %[-][WIDTH][.[PREC]]{doxX}LETTER LETTER に対する printf 風の指定 ---------------------------------------- [原文] .IP LETTERs are as follows for new group, lower case for old group: [訳文] .IP LETTER は、 新しいグループ用に以下のものを用います。古いグループ用には、 それを小文字にしたものを用います。 ---------------------------------------- [原文] .TP F first line number [訳文] .TP F 最初の行番号 ---------------------------------------- [原文] .TP L last line number [訳文] .TP L 最終の行番号 ---------------------------------------- [原文] .TP N number of lines = L-F+1 [訳文] .TP N 行数 = L-F+1 ---------------------------------------- [原文] .TP E F-1 [訳文] .TP E F-1 ---------------------------------------- [原文] .TP M L+1 [訳文] .TP M L+1 ---------------------------------------- [原文] .TP %(A=B?T:E) if A equals B then T else E [訳文] .TP %(A=B?T:E) A と B が等しければ T、そうでなければ E ---------------------------------------- [原文] .IP LFMT (only) may contain: [訳文] .IP LFMT において (のみ) 指定できるもの ---------------------------------------- [原文] .TP %L contents of line [訳文] .TP %L 行内容 ---------------------------------------- [原文] .TP %l contents of line, excluding any trailing newline [訳文] .TP %l 行内容、 ただし改行文字を除く ---------------------------------------- [原文] .TP %[-][WIDTH][.[PREC]]{doxX}n printf-style spec for input line number [訳文] .TP %[-][WIDTH][.[PREC]]{doxX}n 入力行番号に対する printf 風の指定 ---------------------------------------- [原文] .IP Both GFMT and LFMT may contain: [訳文] .IP GFMT, LFMT に共通して指定できるもの ---------------------------------------- [原文] .TP %% % [訳文] .TP %% % ---------------------------------------- [原文] .TP %c'C' the single character C [訳文] .TP %c'C' 単一の文字 C ---------------------------------------- [原文] .TP %c'\eOOO' the character with octal code OOO [訳文] .TP %c'\eOOO' 8 進数コード OOO の文字 ---------------------------------------- [原文] .TP C the character C (other characters represent themselves) [訳文] .TP C 文字 C (その他の文字は、 それ自身を表現する) ---------------------------------------- [原文] .TP -d, --minimal try hard to find a smaller set of changes [訳文] .TP -d, --minimal できるだけ違いを少なく検出する。 ---------------------------------------- [原文] .TP --horizon-lines=NUM keep NUM lines of the common prefix and suffix [訳文] .TP --horizon-lines=NUM 共通のプレフィックスおよびサフィックスとなる NUM 行を維持します。 ---------------------------------------- [原文] .TP --speed-large-files assume large files and many scattered small changes [訳文] .TP --speed-large-files 大きなファイルであって、小さな違いがたくさん含まれると想定し て処理します。 ---------------------------------------- [原文] .TP --color[=WHEN] color output; WHEN is 'never', 'always', or 'auto'; plain --color means --color='auto' [訳文] .TP --color[=WHEN] カラー出力を行います。 WHEN は 'never', 'always', 'auto' のいずれかです。 --color だけを指定すると --color='auto' を意味します。 ---------------------------------------- [原文] .TP --palette=PALETTE the colors to use when --color is active; PALETTE is a colon-separated list of terminfo capabilities [訳文] .TP --palette=PALETTE --color が有効である場合に、 利用するカラーを指定します。 PALETTE は、 terminfo の機能指定 (capability) をカンマで区切ったリストです。 ---------------------------------------- [原文] .TP --help display this help and exit [訳文] .TP --help ヘルプを表示して終了します。 ---------------------------------------- [原文] .TP -v, --version output version information and exit [訳文] .TP -v, --version バージョン情報を出力して終了します。 ---------------------------------------- [原文] .PP FILES are 'FILE1 FILE2' or 'DIR1 DIR2' or 'DIR FILE' or 'FILE DIR'. If --from-file or --to-file is given, there are no restrictions on FILE(s). If a FILE is '-', read standard input. Exit status is 0 if inputs are the same, 1 if different, 2 if trouble. [訳文] .PP FILES は 'FILE1 FILE2'、'DIR1 DIR2'、'DIR FILE'、'FILE DIR' のいずれかです。 --from-file または --to-file を指定した場合、 FILE(s) に対する制約はありません。 FILE が '-' である場合、 標準入力から読み込みます。 終了ステータスは、 入力ファイルの内容が同じであれば 0、 異なっていれば 1、 何か問題が発生すれば 2 です。 ---------------------------------------- [原文] .SH AUTHOR Written by Paul Eggert, Mike Haertel, David Hayes, Richard Stallman, and Len Tower. [訳文] .SH 著者 Paul Eggert, Mike Haertel, David Hayes, Richard Stallman, Len Tower ---------------------------------------- [原文] .SH "REPORTING BUGS" Report bugs to: bug-d****@gnu***** GNU diffutils home page: <https://www.gnu.org/software/diffutils/> General help using GNU software: <https://www.gnu.org/gethelp/> [訳文] .SH バグ報告 バグ報告は bug-d****@gnu***** までお願いします。 GNU diffutils ホームページ: <https://www.gnu.org/software/diffutils/> GNU ソフトウェアの全般的なヘルプ: <https://www.gnu.org/gethelp/> ---------------------------------------- [原文] .SH COPYRIGHT Copyright © 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. [訳文] .SH 著作権 Copyright © 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ---------------------------------------- [原文] .SH "SEE ALSO" wdiff(1), cmp(1), diff3(1), sdiff(1), patch(1) [訳文] .SH 関連項目 wdiff(1), cmp(1), diff3(1), sdiff(1), patch(1) ---------------------------------------- [原文] .PP The full documentation for .B diff is maintained as a Texinfo manual. If the .B info and .B diff programs are properly installed at your site, the command [訳文] .PP diff の完全なドキュメントは Texinfo マニュアルとしてメンテナンスされています。 info と diff の両プログラムが適切にインストールされていれば、 以下のコマンド ---------------------------------------- [原文] .IP .B info diff [訳文] .IP info diff ---------------------------------------- [原文] .PP should give you access to the complete manual. [訳文] .PP を実行して完全なマニュアルを参照できます。 ----------------------------------------