title: How to print number of particular columns in shell script?
body: <p>I have a text file temp1 and say it has more than 20 columns and it has numerical values like as follows,</p>
  
  <pre><code>1,0,3,0,5........,
  1,0,5,0,8........,
  3,0,6,0,3........,
  5,0,6,0,4........,
  .................,
  </code></pre>
  
  <p>I want to remove the columns which has the total(sum) of zero and i need to redirect remaining columns to the new file</p>
  
  <p>ie : for example as above 2nd and 4th columns have the total of zero so i need to remove 2nd and 4 th column and redirect it to separate file .</p>
  
  <p>can any one help me pls?</p>