Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1371.Advanced search and replace -- How to generate several different versions of shuffled paragraphs?

User: editor -- 2016-06-10          << 1370  1372 >>
Hits: 1576
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to generate several different versions of shuffled paragraphs?
Input Sample:
aa1 
aa2 
 
bb1 
bb2 
 
cc1 
cc2
Output Sample:
FILENAME:001.txt 
bb1 
bb2 
 
aa1 
aa2 
 
cc1 
cc2 
FILENAME:002.txt 
bb1 
bb2 
 
cc1 
cc2 
 
aa1 
aa2 
FILENAME:003.txt 
cc1 
cc2 
 
bb1 
bb2 
 
aa1 
aa2 
 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file. 
2. ctrl-h open 'replace' dialog: 
* set 'replace with pattern':  
click 'advanced' tab: 
* set 'run following at the begin..': 
 
* set 'run following for each...': 
 
* set 'output file' to a file in the output folder: 
 
* change the "<" at the left of 'output file' to "<< split by paragraph" 
click 'settings' page: 
* set 'para start' to:  
* set 'para end' to: None 
3. click 'replace', done, file 001.txt, 002.txt, ... will be created. 
 
Note: you need change $N=3 to desired num

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Screenshot 3:  Replace_Settings_Window


Similar Examples:
How to generate permutation of all paragraphs? (67%)
How to generate EMA of close of different periods and related STD from stock data? (61%)
How to randomly generate some of the permutation of paragraphs? (60%)
How do I insert different pieces of text between successive paragraphs? (58%)
How to generate 12 columns EMA with different periods based on "close" value? (56%)
How to generate a list of batch commands with different increasing id? (53%)
How to randomly select one line from each paragraph? (51%)
How to correct typos in a paragraph? (51%)

Check Demo of Advanced search and replace
Keywords:
shuffle  paragraphs  several  split by paragraph  unique  return  led  create  non  paragraph  return tab  different folder  split paragraph  split file by paragraph  split a file by paragraph  split para start  split file paragraph  change paragraph