title: Can someone help me getting average of a column using awk with condition on other column
body: <pre><code>awk -F, '{if ($2 == 0) awk '{ total += $3; count++ } END { print total/count }' CLN_Tapes_LON; }' /tmp/CLN_Tapes_LON
  
  awk: {if ($2 == 0) awk {
  awk:                   ^ syntax error
  bash: count++: command not found
  </code></pre>