I have tried using regular diff and patch to do what follows, but it
doesn't seem to work or I am not using it right. I am wondering if there
is a tool to patch changes to a file based on the actual line content.
For example, I have the following similar files with common lines but
different line orderings:
File 1.txt
Hi, my name is Ted.
1
2
3
4
File 2.txt
1
2
3
4
Hi, my name is Ted
File 3.txt
1
2
Hi, my name is Ted
3
4
I change File 1.txt to:
Hi, my name is Joe.
1
2
3
40
and now I want to create some sort of patch or distribute this change to the other files, but not by coping the entire contents of File 1.txt to the other files, but by chaning only common lines:
4
to
40
and
Hi, my name is Ted.
to
Hi, my name is Joe.
Any help appreciated,
Ted