假設我有以下文件:一個文件的指定行+列與另一行+列
file0.c:
int b=NULL;
int a=NULL;
file1.c中:
int b;
int a=NULL;
file2.c中:
int b=NULL;
int a;
我期待合併文件file1和file2中生成以下result.c:
int b;
int a;
我可以使用:diff input0 input1
和diff input0 input2
獲得行+列組合,但我不知道該怎麼辦接下來才能達到上述結果。
我只是不:) – kingkong
以上只是一個例子,我後面是將兩個有差異的文件合併到一個文件中相對於共同的祖先 – kingkong
感謝您編輯問題。現在它是有道理的。 –