Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1369.Advanced search and replace -- How to generate permutation of all paragraphs?

User: ddumetz -- 2016-06-07          << 1368  1370 >>
Hits: 1036
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


Screenshot 3:  Replace_Settings_Window


Similar Examples:
How to randomly generate some of the permutation of paragraphs? (78%)
How to generate several different versions of shuffled paragraphs? (65%)
How to generate the 9x9 multiplication table? (61%)
How to correct typos in a paragraph? (60%)
How to separate each paragraph by two lines? (58%)
Translate some Abbrs in the paragraph (54%)
How to extract all function names from a perl program? (53%)
How to auto generate required url from list of words? (52%)

Check Demo of Advanced search and replace
Keywords:
paragraphs  split by paragraph  split paragraph  split para  write  return  create  non  paragraph  paragra  return tab  different folder  split file by paragraph  split a file by paragraph  split para start  split file paragraph  change paragraph  join with output file