title: Awk to skip the blank lines
body: <p>The output of my script is tab delimited  using <code>awk</code> as :</p>
  
  <pre><code>awk -v variable=$bashvariable  '{print variable"\t single\t" $0"\t double"}' myinfile.c
  </code></pre>
  
  <p>The <code>awk</code> command is run in a while loop which updates the variable value and the file myinfile.c for every cycle.
  I am  getting the expected results with this command .
  But if the inmyfile.c contains a blank line (it can contain) it prints  no relevant information. can I tell <code>awk</code> to ignore the blank line ?</p>
  
  <p>I know it can be done by removing the blank lines from  myinfile.c before passing it on to <code>awk</code> .
  I am in knowledge of <code>sed</code> and <code>tr</code> way but I want <code>awk</code> to do it in the above mentioned command itself and not a separate solution as below or a piped one. </p>
  
  <pre><code>sed '/^$/d' myinfile.c
  tr -s "\n" &lt; myinfile.c
  </code></pre>
  
  <p>Thanks in advance for your suggestions and replies.</p>