title: How to add some tags to html using linux commands like sed
body: <p>I have html page with some tables and I need add new table as FIRST table on the page using bash script, I know that it can be done using sed or smt else, but I dont know how it working... Can someone help to find way for it?</p>
  
  <p>example of html page:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
  
  THERE SHOULD BE ADDED NEW TABLE ROW LIKE BELOW 
  
  
  &lt;tr&gt;
  &lt;td rowspan="2" bgcolor="#fff1cc" class="style4"&gt;&lt;div align="center"&gt;
  &lt;h4&gt;2012-07-17&lt;/h4&gt;
  &lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td height="2" bgcolor="#fff1cc" class="style4"&gt;&lt;a ref="07_17_ef47efb/index.html"&gt;sha1:ef47efb&lt;/a&gt;&lt;/td&gt;
  &lt;td bgcolor="#fff1cc" class="style4" align="center"&gt;&lt;img src="../Pictures/green.gif" width="35" height="37"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td rowspan="2" bgcolor="#fff1cc" class="style4"&gt;&lt;div align="center"&gt;
  &lt;h4&gt;2012-07-17&lt;/h4&gt;
  &lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td height="2" bgcolor="#fff1cc" class="style4"&gt;&lt;a href="07_17_ef47efb/index.html"&gt;sha1:ef47efb&lt;/a&gt;&lt;/td&gt;
  &lt;td bgcolor="#fff1cc" class="style4" align="center"&gt;&lt;img src="../Pictures/green.gif" width="35" height="37"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td rowspan="2" bgcolor="#fff1cc" class="style4"&gt;&lt;div align="center"&gt;
  &lt;h4&gt;2012-07-17&lt;/h4&gt;
  &lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td height="2" bgcolor="#fff1cc" class="style4"&gt;&lt;a href="07_17_ef47efb/index.html"&gt;sha1:ef47efb&lt;/a&gt;&lt;/td&gt;
  &lt;td bgcolor="#fff1cc" class="style4" align="center"&gt;&lt;img src="../Pictures/green.gif" width="35" height="37"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>exmaple of Table row  that should be added as FIRST in html page:</p>
  
  <pre><code>&lt;tr&gt;
  &lt;td rowspan="2" bgcolor="#fff1cc" class="style4"&gt;&lt;div align="center"&gt;
  &lt;h4&gt;$date&lt;/h4&gt;
  &lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td height="2" bgcolor="#fff1cc" class="style4"&gt;&lt;a ref="$path/index.html"&gt;sha1:$rev&lt;/a&gt;&lt;/td&gt;
  &lt;td bgcolor="#fff1cc" class="style4" align="center"&gt;&lt;img src="../Pictures/green.gif" width="35" height="37"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>