| User: ddumetz -- 2016-06-07 << 1368 1370 >> |
| Hits: 3019 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to generate permutation of all paragraphs, and write each of the result into a different file? |
| Input Sample: |
| Paragraph1 aaa Paragraph2 aaa Paragraph3 aaa Paragraph4 aaa |
| Output Sample: |
| File:001.txt Paragraph1 aaa Paragraph2 aaa Paragraph3 aaa Paragraph4 aaa File 002.txt Paragraph2 aaa Paragraph1 aaa Paragraph3 aaa Paragraph4 aaa ... File 024.txt Paragraph4 aaa Paragraph3 aaa Paragraph2 aaa Paragraph1 aaa |
| 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' dialogue: * 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 under selected folder. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |