User: editor -- 2009-03-31 << 323 325 >> |
Hits: 3298 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to create 1000 files base on file template.txt, change "ITEM1" to "ITEM1", "ITEM2", ..."ITEM1000" for each file? |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. Perpare a text file with 1000 lines, all lines are the same, that is full path name your template file: D:\work\template.txt D:\work\template.txt .... D:\work\template.txt 2. run "Tools->Batch Runner" menu from Replace Pioneer. 3. click "Import List" to import your file prepared at step 1 4. click set output filename, and change the ${FILENAME} to result_#.txt, in output filename column, you can see output name is result_1.txt, result_2.txt, ... 5. click "Fast Replace" * click "Add" button, fill in "Search" field as: * fill in "Replace" field as * make sure "Regular Exp" is selected. If your file is binary file, make sure "Binary file" option is selected. 6. click "Start", all files will be generated! |
Screenshot 1: Fast_Replace_Window |