User: editor -- 2012-05-19 << 947 949 >> |
Hits: 3428 |
Type: Replace text in multiple files |
Search all Replace text in multiple files examples |
Description: |
How to search text XXXXX in multiple files, and in each file replace XXXXX with different strings, the new strings are prepared in advance. |
Input Sample: |
=============================== words.txt with following lines: string1 string2 string3 =============================== There are some html files: file1.html file2.html file3.html |
Output Sample: |
replace XXXXX in file1.html with string1 replace XXXXX in file2.html with string2 replace XXXXX in file3.html with string3 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume replace strings are saved in a file d:\test\words.txt 1. open "Tools->Batch Runner" menu 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 replace rule * set 'search' to: * set 'replace' to: * click 'ok' 4. click "start", done. |
Screenshot 1: Fast_Replace_Window |