Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

234.Advanced search and replace -- How to replace some text like abc.html with real html file name for hundreds of html files?

User: editor -- 2008-07-25          << 233  235 >>
Hits: 1946
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace some text like abc.html with real html file name for hundreds of html files?
Input Sample:
file a1.html 
xxxxx http://xxx/abc.html 
xxxxx 
 
file a2.html 
xxxxx http://xxx/abc.html 
xxxxx 
 
...
Output Sample:
file a1.html 
xxxxx http://xxx/a1.html 
xxxxx 
 
file a2.html 
xxxxx http://xxx/a2.html 
xxxxx 
 
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-h open 'Replace' dialog 
set "Search for Pattern" to: 
 
set "Replace with Pattern" to: 
 
2. click "Batch..." button to open "Batch Runner" window 
3. click "Pick Files" to select multiple html files in folders. 
4. click "Batch Replace" button, done!
Download Script:  scripts/234.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to replace strings in hundreds of html files in one action? (57%)
How to batch rename each html file to the title of the html file? (55%)
How to replace the last occurance of some text like 'abc' to 'def' in a text file? (54%)
How to remove/delete text after </html> in many html files? (54%)
How do I replace a partial constant in my file with one by one lines in a dictionary file? (53%)
How to replace non-fixed text pattern in a html file? (52%)
How to replace some text with a random line from another file? (51%)
How to split a text file by line and rename each file to the line contents? (51%)

Check Demo of Advanced search and replace
Keywords:
logs  basename  folders  abc  pick  folder  base  html  htm  old  html select multiple  replace text in multiple files with file name  name html  replace html text  multiple file name replace  replace text in file with file name  html text  html to text