Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1310.Text generator -- How to generate required format with given words in each line?

User: ting -- 2015-07-14          << 1309  1311 >>
Hits: 3175
Type: Text generator   
Search all Text generator examples
Description:
with line like man,male,boy, use each of words as search string, and the rest as random replacement string. 
 
Input Sample:
man,male,boy 
aa,bb,cc,dd
Output Sample:
<find>man</find> 
<replace>rand_str(1,'male','boy')</replace> 
<find>male</find> 
<replace>rand_str(1,'man','boy')</replace> 
<find>boy</find> 
<replace>rand_str(1,'man','male')</replace> 
<find>aa</find> 
<replace>rand_str(1,'bb','cc','dd')</replace> 
<find>bb</find> 
<replace>rand_str(1,'aa','cc','dd')</replace> 
<find>cc</find> 
<replace>rand_str(1,'aa','bb','dd')</replace> 
<find>dd</find> 
<replace>rand_str(1,'aa','bb','cc')</replace>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
 
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace unit' to 'Line' 
* set 'replace with pattern' to: 
 
* click 'advanced' tab, set 'run following for each matched unit' to: 
 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to auto generate required url from list of words? (65%)
How to delete specified consecutive chars leading each line? (60%)
How to delete the same field in each line? (60%)
How to extract and format sentences matching given word list? (58%)
How to batch replace files with specified format in each line? (57%)
How to batch split file delimitered by first dash in each line? (57%)
How to add a komma (,) after first and second words in each line? (57%)
How to delete the first word in each line in a text file? (57%)

Check Demo of Text generator
Keywords:
given  give  replacement  grep  random replac  random replace  random  rando  rand  find  generate random words  random words generator  split words in a string  random replace text string  text find and split file  find string  find string replace  replace with random words