Hello,
I have hundreds of files in which I need to change email address. Here is what I am trying to do:
- All text files are in a directory "a"
- In the text file, I want to replace email address for preparer. All these lines start with {{PreparerEmail and end with }}. The email addresses on these files are different.
for e.g.
Line in file1 is
{{PreparerEmail abc@abc.com}}
Line in file2 is
{{PreparerEmail bcd@xyz.com}}
Line in file 3 is
{{PreparerEmail pqr@yyy.com}}
- I want to replace these emails in all the files within a directory with a common email address for e.g aaa@bbb.com
The expected end result for the sample lines provided earlier would be
Line in file1 is
{{PreparerEmail aaa@bbb.com}}
Line in file2 is
{{PreparerEmail aaa@bbb.com}}
Line in file 3 is
{{PreparerEmail aaa@bbb.com}}
Any assistance is greatly appreciated.