title: convert a text file output to a html format using bash
body: <p>HI am trying to convert a text file to html with table so that i could mail the output in a table format and i used <code>awk 'BEGIN{print "Content-Type: text/html; charset="us-ascii""\n "&lt;html&gt;"\n "&lt;Body&gt;"\n "&lt;table&gt;"} {print "&lt;tr&gt;";for(i=1;i&lt;=NF;i++)print "&lt;td&gt;" $i"&lt;/td&gt;";print "&lt;/tr&gt;"} END{print \n&lt;/Body&gt;"\n "&lt;/html&gt;"\n"&lt;/table&gt;"}' a.txt &gt;&gt; email.html</code> but am having problems could some one help me on this</p>