Its not often that I ask for help in here but I need to find some kind of Tool or Script that will allow me to search a text file for a word or string, ideally even multiple strings but that isn't critical, and then be able to replace those finds with one of the strings from the list, randomly.
So for an example, every time it finds "Find_Word_A" in the text file, it will replace it with one of the set words in the list randomly, and three example replacing words in the list could be "Replace_Word_1", "Replace_Word_2", "Replace_Word_3", etc.
So this text:
Code: Select all
....... Find_Word_A .......... Find_Word_A
.........Find_Word_A ........... Find_Word_A ...........Code: Select all
....... Replace_Word_2 .......... Replace_Word_1
......... Replace_Word_1 ........... Replace_Word_3 ...........So if anyone knows of a tool or script that will do what I need can you point me in the right direction, and if not, is anyone around here able to make me a tool/script that would do this?
Cheers!
- Thread copied to: https://www.realitymod.com/forum/f56-ma ... cript.html



