| User: editor -- 2012-02-20 << 921 923 >> |
| Hits: 5173 |
| Type: Replace text in multiple files |
| Search all Replace text in multiple files examples |
| Description: |
| How to replace numbers or strings in multiple text files with an increasing id start from 1? |
| Input Sample: |
| file1.txt <p>33.95</p> <p>39.95</p> ... file2.txt <p>22.95</p> <p>59.95</p> <p>59.95</p> ... |
| Output Sample: |
| file1.txt <p>Price1</p> <p>Price2</p> ... file2.txt <p>Price1</p> <p>Price2</p> <p>Price3</p> ... |
| 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 multiple files from windows file browser to 'batch runner' window 3. click 'fast replace' button to open 'fast replace' dialogue * click 'add' to add new rule * set 'search' to: * set 'replace' to: * click "ok" 4. check option of "reg exp" and "cross line" 5. click "start", done. |
Screenshot 1: Fast_Replace_Window |