User: yong -- 2014-09-03 << 1240 1242 >> |
Hits: 3302 |
Type: Replace text in multiple files |
Search all Replace text in multiple files examples |
Description: |
I have a lots of text articles, i want to shuffle all of the Paragraph,4-7 paragraph per article, if the Paragraph less than 30 words, then delete this paragraph. please see the text sample, thanks! |
Input Sample: |
text 1: Paragraph 1 Paragraph 2 Paragraph 3 Paragraph 4 Paragraph 5 Paragraph 6 text 2: Paragraph 7 Paragraph 8 Paragraph 9 Paragraph 10 Paragraph 11 Paragraph 12 text 3: Paragraph 13 Paragraph 14 Paragraph 15 Paragraph 16 Paragraph 17 Paragraph 18 |
Output Sample: |
text 1: Paragraph 17 Paragraph 12 Paragraph 3 Paragraph 4 Paragraph 9 Paragraph 6 text 2: Paragraph 13 Paragraph 8 Paragraph 2 Paragraph 10 Paragraph 11 Paragraph 1 text 3: Paragraph 9 Paragraph 4 Paragraph 15 Paragraph 16 Paragraph 11 Paragraph 8 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Batch Runner" menu 2. drag multiple text files to "Batch Runner" window 3. click "Fast Replace" button 4. click "Add" to add new rules: * leave "search" to be blank * set "replace" to: * click "ok". 5. make sure "reg exp" option is checked, and click "start", done. Note: Here, a "Pararaph" is defined to be some text followed by at least one blank line. If you want to shuffle all lines instead of "Paragraph", set "replace" to: |
Screenshot 1: Fast_Replace_Window |