Next: , Up: Output Formats


2.1 二つのサンプル入力ファイル

diffの出力と,様々なオプションがどのようにしてそれを変更するか をを説明するために多くの例で使用する二つのサンプルファイルを以下に示しま す.

これはファイルlaoです.

     The Way that can be told of is not the eternal Way;
     The name that can be named is not the eternal name.
     The Nameless is the origin of Heaven and Earth;
     The Named is the mother of all things.
     Therefore let there always be non-being,
       so we may see their subtlety,
     And let there always be being,
       so we may see their outcome.
     The two are the same,
     But after they are produced,
       they have different names.

これはファイルtzuです.

     The Nameless is the origin of Heaven and Earth;
     The named is the mother of all things.
     
     Therefore let there always be non-being,
       so we may see their subtlety,
     And let there always be being,
       so we may see their outcome.
     The two are the same,
     But after they are produced,
       they have different names.
     They both may be called deep and profound.
     Deeper and more profound,
     The door of all subtleties!

この例では,最初のhunkにはlaoの最初の二つの行が含まれ,二番目の hunkにはlaoの四行目と対応するtzuの二行目と三行目が含まれ, そして,最後のhunkにはtzuの最後の三行が含まれます.