Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1382.Random word generator -- How to replace a string with one of the specified words randomly in multiple files?

User: liyun20089 -- 2016-11-04          << 1381  1383 >>
Hits: 1231
Type: Random word generator   
Search all Random word generator examples
Description:
I have multiple texts
I want to replace one of these words
There are several alternative options
I want to be able to randomly select replacements

For example, I would like to randomly replace: He's been boss of the backyard to AAA or BBB or CCC in four files.
Input Sample:
1.txt
You see, up to now, he's been king of the roost.
He's been boss of the backyard.
...

2.txt
You see, up to now, he's been king of the roost.
He's been boss of the backyard.
...

...
Output Sample:
1.txt
You see, up to now, he's been king of the roost.
BBB.
...

2.txt
You see, up to now, he's been king of the roost.
AAA.
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-h open 'replace' dialogue
* set 'search for pattern' to the string:

* set 'replace with pattern' to:

2. click "batch..." button, open "batch replace" window
3. click "pick files" select multiple files you want to replace, and click "batch replace", done.

Screenshot 1:  Replace_Window


Similar Examples:
How to replace the 2nd and 3rd occurrences of some words in multiple files? (70%)
How to replace strings in one file with words from another file sequentially? (69%)
How to replace strings and numbers with new format in multiple files? (69%)
How to replace a string in one text file with random words from another file? (69%)
How to replace a word/string with increasing number in multiple files? (66%)
How to add bold tag for some specified keywords in multiple html files? (66%)
How to extract lines containg specified words from many files? (64%)
How to replace the certain column with specified words? (64%)

Check Demo of Random word generator
Keywords:
randomly select  alt  several  replacement  aaa  unique  randomly replace  randomly  specified words  random word generator  multiple replacements  randomly replace words  batch word generator  word generator batch  search words in a string in batch  string replace randomly  batch search pattern in string  replace words generator