User: editor -- 2010-07-14 << 563 565 >> |
Hits: 3127 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to clone 1000 html files from one html but with increasing number in title? I have a 1.html file with following title: <title>part 1</title>, how to generate 1000 html files base on 1.html file, but with title from part 1 to part 1000? |
Input Sample: |
1.html <title>part 1</title> ... |
Output Sample: |
1.html <tile>part 1</title> ... 2.html <title>part 2</title> ... 3.html <title>part 3</title> ... ... 1000.html |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume your files is c:\dat\1.html 1. ctrl-B open "Tools->Batch Runner" window 2. click "Create Links" button, and change the "Link Template" to "c:\dat\1.html", and change the range to "From 1 to 999", click "Create" button to create a list with 999 file 1.html 3. change the entry of "Set output filename" to: , check the "output file" column, there are html files listed from 2 to 999 4. click "Fast Replace" button, click "Add" * in "search", enter: * in "replace", enter: * click "OK" button. * make sure "Regular Exp" and "Cross Line" and "Ignore cases" options are selected. * click "Start" button, files from 2.html to 1000.html will be generated, with title of part 2, part3, ... and so on. |
Screenshot 1: Batch_Runner_Window |