User: ddumetz -- 2016-06-10 << 1369 1371 >> |
Hits: 2777 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to randomly generate some of the permutation of all 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 # |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |