Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

767.Replace text in multiple files -- How to convert multiple text files to html files with self-defined format?

User: editor -- 2011-04-21          << 766  768 >>
Hits: 2319
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


Screenshot 2:  Fast_Replace_Window


Similar Examples:
How to convert multiple text files from DOS format to UNIX format? (73%)
How to convert multiple text files from UNIX format to DOS format? (73%)
How to convert a text file to specified format? (71%)
How to extract and join text from multiple files with user defined format? (68%)
How to convert each line of a text file to the new format? (67%)
How to insert mulitple text files into multiple html files? (65%)
How to join corresponding line of multiple text files with specified format? (63%)
How to create a text file including filenames in a folder with specified format? (63%)

Check Demo of Replace text in multiple files
Keywords:
body  convert multiple text files to html files  how to convert multiple te  define  fine  rules  title  cross line  how to convert  convert  convert files html files to text  convert multiple files from  convert html to text  convert text to html  convert text file to html  specified format  convert html  html format