| User: editor -- 2011-07-06 << 815 817 >> |
| Hits: 5565 |
| Type: Replace text in multiple files |
| Search all Replace text in multiple files examples |
| Description: |
| How to insert 100 different lines into the beginning of 100 text files? |
| Input Sample: |
| line1 line2 line3 ... line100 |
| Output Sample: |
| --------------------- File1: line1 original lines ... --------------------- File2: line2 original lines ... --------------------- ... --------------------- File100: line100 original lines ... |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| Assume the 100 different lines are saved in a text file: d:\test\lines.txt 1. open "Tools->Batch Runner" menu 2. drag multiple files from "windows file browser" to "Batch Runner" window 3. click "Fast Replace" button * click "Add" to add a rue * set "Search" to: * set "Replace" to: where lines.txt is filename, d:\test\ is the path * click "ok" 4. make sure "Reg exp" and "Cross Line" options are selected, and click "Start" 5. click "Yes" to make the replace, done. |
Screenshot 1: Fast_Replace_Window |