I am using Windows 7. I need to replace multiple occurences of multiple words in multiple text files.
For example, suppose there are 20 files. I have a list of words to find, and the words to replace them with. Suppose, The find list has words like "12345678", "ABCDEFGH", etc. The replace list has words like "76892", "A563", etc.
In each file, I need to replace each word in my find list with the word in the replace list. As you can see, there is no direct pattern in the find list and the replace list.
Instead of doing it manually one by one, is there a way to do it quickly, using some utility (should be free)? I can do it programmatically, but I am looking for an answer without writing any code. If there were a pattern between the Find list and the Replace list, I could have used Regular Expressions, but there is no pattern.
An example will be helpful. Even with TextPad's Find in Files feature, I dont think it is possible, as there is no pattern. I have searched multiple threads in this forum, but many answers either refer to writing a macro or a PowerShell utility or using Regular Expressions, etc. I hope this is not marked as Duplicate by the moderators.
I can do it programmatically, but I am looking for an answer without writing any code- Can I ask why you're looking for this type of solution? – Dave May 17 '16 at 10:57get-childitem "C:\yourpath" -filter *.txt | % {(Get-Content $($_.FullName)) -replace "12345678","A563" | Set-Content }– SimonS May 17 '16 at 12:09