User: Rod Smith -- 2015-04-06 << 1292 1294 >> |
Hits: 2972 |
Type: Replace text in multiple files |
Search all Replace text in multiple files examples |
Description: |
Many text files, of variable length, contain a comment line beginning <! -- This comment line is at a variable position in the file. I need to move these lines to the end of the file in all the files. |
Input Sample: |
line 1 line 2 line n <!-- comment line ....-- > line n+2 line n+1 line last |
Output Sample: |
line 1 line 2 line n line n+2 line n+1 line last <!-- comment line ....-- > |
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 to open 'Fast Replace' window 4. click 'add' to add new rule * set 'search' to: * set 'replace' to: 5. make sure "reg exp" and "cross line" options are checked 6. click 'start', done. |
Screenshot 1: Fast_Replace_Window |