User: editor -- 2012-11-14 << 1023 1025 >> |
Hits: 4245 |
Type: Replace text in multiple files |
Search all Replace text in multiple files examples |
Description: |
How to insert mulitple text files into multiple html files? There are multiple html files 1.html, 2.html, ... 1000.html in folder A There are mulitple txt files 1.txt, 2.txt, ...1000.txt in folder B How to insert content of N.txt into N.html before the position of </html> tag? where N is 1,2,... 1000? |
Input Sample: |
A\1.html A\2.html ... A\1000.html B\1.txt B\2.txt ... B\1000.txt |
Output Sample: |
Insert 1.txt into 1.html before the position of </html> tag Insert 2.txt into 2.html before the position of </html> tag ... |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Batch Runner" menu 2. drag multiple 1.html, 2.html, ...1000.html files from folder A to "Batch Runner" window 3. click "Fast Replace" button 4. click "add" to add new rules: * set "search" to: * set "replace" to: |