title: Parse contents of .txt file to HTML file using Bash
body: <p>I have a task to parse contents of text file into the part of HTML. For example I have a file <code>CONTENTS.txt</code> which the contents have format like this:</p>
  
  <pre><code>&lt;div class="page-header"&gt;
     &lt;h3&gt;TITLE1&lt;/h3&gt; 
  &lt;/div&gt;
  
  &lt;p&gt;CONTENT1 BLABLABLALBA&lt;/p&gt;
  &lt;p&gt;CONTENT1 BLALALBALBALA&lt;/p&gt;
  &lt;br/&gt;
  
  &lt;div class="page-header"&gt;
       &lt;h3&gt;TITLE2&lt;/h3&gt; 
  &lt;/div&gt;
  
  &lt;p&gt;CONTENT2 BLABLABLALBA&lt;/p&gt;
  &lt;p&gt;CONTENT2 BLALALBALBALA&lt;/p&gt;
  &lt;p&gt;CONTENT2 BLALALBALBALA&lt;/p&gt;
  &lt;br/&gt;
  
  &lt;div class="page-header"&gt;
       &lt;h3&gt;TITLE3&lt;/h3&gt; 
  &lt;/div&gt;
  
  &lt;p&gt;CONTENT3 BLABLABLALBA&lt;/p&gt;
  </code></pre>
  
  <p>And what i want is to insert them to the something part of the HTML in <code>HOME.html</code> like in</p>
  
  <pre><code>&lt;div class="span6"&gt;
  
  .................
  
  &lt;/div&gt;
  </code></pre>
  
  <p>How to do that in bash script?</p>