CarlCrusher
Technical User
Hi,
I am not sure if this is even possible but I thought I may ask anyway.
I have dozens of files that have different extensions (but all text based). I need to find and copy a specific line within these files and paste them into files with the same extension.
ie.
Files with lines that need to be found then copied
Test.user.johnsmith
Test.user.janedoe
Test.user.mikejones
(the line that needs to be found begins with "Middle"
The files that need to have the "middle" line appended to it are:
Final.user.johnsmith
Final.user.janedoe
Final.user.mikejones
In an added complication the "Final" files may already contain a line that begins with "Middle" in these cases these lines need to be replace.
Does anyone have any suggestions? Is this even possible?
Thanks in advanced.
I am not sure if this is even possible but I thought I may ask anyway.
I have dozens of files that have different extensions (but all text based). I need to find and copy a specific line within these files and paste them into files with the same extension.
ie.
Files with lines that need to be found then copied
Test.user.johnsmith
Test.user.janedoe
Test.user.mikejones
(the line that needs to be found begins with "Middle"
The files that need to have the "middle" line appended to it are:
Final.user.johnsmith
Final.user.janedoe
Final.user.mikejones
In an added complication the "Final" files may already contain a line that begins with "Middle" in these cases these lines need to be replace.
Does anyone have any suggestions? Is this even possible?
Thanks in advanced.