User: Rod Smith -- 2013-08-12 << 1113 1115 >> |
Hits: 3434 |
Type: Replace text in multiple files |
Search all Replace text in multiple files examples |
Description: |
Find a line in a file contain a certain word and copy that line and insert it as the a new second line from the top of the file the original line 2 become line 3. No line is deleted from the file. We now have a new added line 2 copy of the line with the target text. |
Input Sample: |
line 1 line 2 more lines Line with TARGET TEXT(but may be last line in file) possibly more lines |
Output Sample: |
line 1 Line with TARGET TEXT(copied here)) Line 3(was line 2) more lines Line with TARGET TEXT(still here also) possibly more lines |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Batch Runner" window 2. drag multipe files from "file explorer" to 'batch runner' window 3. click "Fast Replace" button 4. click "add" to add new rule * leave 'search' to be blank * set 'replace' to: * click "ok" 3. click 'start', done. |
Screenshot 1: Fast_Replace_Window |