Is there a batch script or a windows program which can be used to replace multiple different texts inside different text files with different replacement texts at once using regex/wildcards?
Here's the scenario:
I have hundreds of text files with texts inside them such as E:\documents\fruits\Apple.jpg, E:\documents\instruments\Guitar.png, etc. along other lines of texts within the files.
I would like to replace these texts with different ones which I put inside one text file which contains the replacing texts one text per line. This text file's contents looks something like:
Take note that the directory names in between "E:\documents\" and the filenames vary and the filenames are the ones constant.
I have Windowsgrep installed but I'm not sure whether it can be used to do this task. I have used it before for simple find and replace tasks in which I needed to replace similar texts within files with one "replace with" value.
Any kind of help would be appreciated.
Here's the scenario:
I have hundreds of text files with texts inside them such as E:\documents\fruits\Apple.jpg, E:\documents\instruments\Guitar.png, etc. along other lines of texts within the files.
I would like to replace these texts with different ones which I put inside one text file which contains the replacing texts one text per line. This text file's contents looks something like:
Code:
E:\documents\121345643\Guitar.png
E:\documents\347627548\Apple.jpg
Take note that the directory names in between "E:\documents\" and the filenames vary and the filenames are the ones constant.
I have Windowsgrep installed but I'm not sure whether it can be used to do this task. I have used it before for simple find and replace tasks in which I needed to replace similar texts within files with one "replace with" value.
Any kind of help would be appreciated.