| User: editor -- 2011-03-07 << 732 734 >> |
| Hits: 4638 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to extract multiple lines with specified order from many text files? Need to change the line order to 3,5,7,1,1,6,8,9,... in the new file. |
| Input Sample: |
| line1 line2 line3 line4 line5 line6 line7 line8 line9 ... |
| Output Sample: |
| line3 line5 line7 line1 line1 line6 line8 line9 ... |
| 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 files from windows file browser to "Batch Runner" window 3. click 'fast replace' button open 'fast replace' window * click 'add', and set 'replace' to: * click 'ok' * make sure 'regular exp' option is selected, and click 'Start' button, done. Note: should use version 2.61 or newer. |
Screenshot 1: Fast_Replace_Window |