I have plain txt file like:
===
Date:30.05.2013
**Header**
text
===
Date:29.05.2013
**Header**
text
===
etc.
I want to convert it into html file like:
<hr>
<b>Date:30.05.2013</b>
<h1>Header</h1>
text
<br>
<hr>
<b>Date:29.05.2013</b>
<h1>Header</h1>
text
<br>
<hr>
etc.
I know about "for" command, i use it
for /f "tokens=*" %%f in ('type news.txt') do (
if [%%f]==[===] (echo ^<hr/^> >>news.htm) ELSE (echo %%f^<br/^> >>news.htm)
)
But i dont know, how perform other action for strings that contains keyword (e.g. Date or *) and dont know, how insert blank br tag for blank strings in text file.
Please, help me, i spent many hours =(