比較したのは、以下の 2 つのファイルです。
| 1 番目のファイル | 2 番目のファイル | ||
|---|---|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Eustace, a pointy-eared hippopotamus, was scampering across a summer meadow one day when he suddenly came across a stream. Sitting on a rock in the middle of the stream was a small green frog, basking in the afternoon sunshine. "Hello small green frog!", said Eustace."What are you doing there?" Froggy didn't answer, so Eustace trod on him and wandered off into the nearby forest to look for wild onions. |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Eustace, a pointy-eared hippopotamus, was scampering across a summer meadow one day when he suddenly came across a stream. Eustace almost fell into the stream, but skidded to a halt just in time. Sitting on a rock in the middle of the stream was a small blue frog, basking in the afternoon sunshine. "Hello small blue frog!", said Eustace."What are you doing there?" |
Merge が作成した編集スクリプトは、次に示すようになります。編集スクリプトでは、最初のファイルを 2 番目のファイルに変えるために、最初のファイルに対して行う必要のある編集を表しています。2 番目のファイルを最初のファイルに変換するための十分な情報もレポートに含まれています。
| 編集スクリプト | 説明 |
|---|---|
5a5,7 > Eustace almost fell into the stream, but > skidded to a halt just in time. > |
2 番目のファイルの 3 行(5 行目から 7 行目)は、最初のファイルの 5 行メッセージの前に挿入する必要があります。 |
6c9 < stream was a small green frog, basking in the --- > stream was a small blue frog, basking in the |
最初のファイルの 6 行目は、2 番目のファイルの 9 行目に相当し、現在の内容(プレフィックス < の付いた行から --- マーカーの前まで)を新しい内容(プレフィックス > の付いた行で --- マーカーの後の行)に変更する必要があります。 |
9c12 < "Hello small green frog!", said Eustace. "What --- > "Hello small blue frog!", said Eustace. "What |
最初のファイルの 9 行目は、2 番目のファイルの12 行目に相当し、現在の内容(プレフィックス < の付いた行から --- マーカーの前まで)を新しい内容(プレフィックス > の付いた行で --- マーカーの後の行)に変更する必要があります。 |
11,14d14 < < Froggy didn't answer, so Eustace trod on him < and wandered off into the nearby forest to look < for wild onions. |
11 行目から 14 行目は、最初のファイルから削除する必要があります。 |
| 関連するトピック |
|---|
