title: perform arithmetic operation using awk
body: <p>I want to perform either of the two arithmetic operation when the condition is met:</p>
  
  <p>I have FILE contains:</p>
  
  <pre><code> 2,8,123,VT
   60,32,456,DU
  </code></pre>
  
  <p>when it's VT, </p>
  
  <pre><code> awk -F, '{ans = sprintf ("%.0f",($1 + $2) / 10); print ans}'
  </code></pre>
  
  <p>when its DU,</p>
  
  <pre><code> awk -F, '{quo = $3 / 60); print qou}'
  </code></pre>
  
  <p>and the answer should be added to the file. For example, after calculating above computations:</p>
  
  <pre><code> 2,8,123,VT,1
   60,32,456,DU,2
  </code></pre>
  
  <p>Can I use awk for this? How?</p>