I'm trying to compare files from
folder1 to their updated version in
folder2. The files have identical names, but may have different number of strings. The strings look like:
string_1_name: "some text" string_2_name: "some text" . . string_n_name: "some text"
So I need to compare only the parts of the strings before colon -
string_1_name, and then if a file1.txt from folder2 has an extra or updated string, I want to copy the full string
string_1_name: "some text" and paste it into the
folder1 but in the same location (an updated string can be in-between old strings) or replace an old string with an updated one. And then create the result
file1.txt (with the same name) in
It will be great if the newly added strings in the result files were highlighted some how, colored or at least bolded.