Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

564.Advanced search and replace -- How to clone 1000 html files from one html but with increasing number in title?

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


Screenshot 2:  Fast_Replace_Window


Similar Examples:
How to replace the second column of a file with an increasing number? (57%)
How to replace a word/string with increasing number in multiple files? (57%)
How to batch rename files by moving the leading numbers to the end? (57%)
How to convert multiple files from one encoding to another with online tool? (56%)
How to change JPG files to the name of its creation time? (55%)
How to rename files by removing all leading numbers? (55%)
How to replace a word/string with increasing sequence number in a text file? (55%)
How to count and sort the occurrence of different numbers in a text file? (55%)

Check Demo of Advanced search and replace
Keywords:
create links  create link  increasing number  range  increasing  create  ignore case  links  increas  ignore  create 1000 html files  generate html files  replace and create files from list  number range  search and replace with increasing number  search file and replace with increasing number  search replace increasing number  create a list of files