title: How to overcome "(FILENAME=- FNR=1) fatal: division by zero attempted" error in awk
body: <p>I have a 10 column text file and I need to do some mathematical processing on it.
  For example, when I issue below command</p>
  <pre><code>cat case.dat | awk '{print ($1-0.777472), ($1*$2*$3*$4)/($10)}'
  </code></pre>
  <p>Then I get below error</p>
  <pre><code>awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
  </code></pre>
  <p>and the script does not give any output.</p>
  <p>That means I have some <code>zero's</code> in <code>$8</code> and thus I am getting error. How I can overcome this issue with a simple awk command?</p>