title: HTML in Shell Scripting UNIX
body: <pre><code>val=Mumbai
  
  cat &lt;&lt; 'EOF' &gt; pkll1.htm
  &lt;html&gt; 
  &lt;head&gt;
  &lt;title&gt;HTML&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;$val&lt;/h1&gt;
  while read line
  do
  val1=`echo $line`
  &lt;p&gt;$val1&lt;/p&gt;
  done&lt;myfile.dat
  &lt;/body&gt;
  &lt;/html&gt;
  EOF
  </code></pre>
  
  <p>Above code showing output as below instead of actual value:</p>
  
  <pre><code>$val
  while read line do val1=`echo $line` 
  $val1
  
  done 
  </code></pre>
  
  <p>How to execute it in correct way?Help me please.</p>