| User: editor -- 2011-04-21 << 766 768 >> |
| Hits: 363 |
| Type: Replace text in multiple files |
| Search all Replace text in multiple files examples |
| Description: |
| How to convert multiple text files to html files with specified rules? |
| Input Sample: |
| Text File has following lines: line1 line2 line3 line4 ... |
| Output Sample: |
| Html File: <html> <head> <title>line1</title> </head> <body> <h1>line2</h1> line3<br> line4<br> .... </body> </html> |
| 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 text files from file browser to "Batch Runner" window 3. set "set output file name" entry to: 4. click "Fast Replace" button * click "Add", set "Search" to: * set "Replace" to: * click "ok" * check "Reg Exp" and "Cross Line" option * click "Start", done. |
Screenshot 1: Batch_Runner_Window |