title: Delete row which has more than X columns in a csv
body: <p>I need to delete all the rows in a csv file which have more than a certain number of columns. </p>
  
  <p>This happens because sometimes the code, which generates the csv file, skips some values and prints the following on the same line. </p>
  
  <p>Example: Consider the following file to parse. I want to remove all the rows which have more than 3 columns (i.e. the columns of the header):</p>
  
  <pre><code>timestamp,header2,header3
  1,1val2,1val3
  2,2val2,2val3
  3,4,4val2,4val3
  5val1,5val2,5val3
  6,6val2,6val3
  </code></pre>
  
  <p>The output file I would like to have is:</p>
  
  <pre><code>timestamp,header2,header3
  1,1val2,1val3
  2,2val2,2val3
  5val1,5val2,5val3
  6,6val2,6val3
  </code></pre>
  
  <p>I don't care if the row with timestamp 4 is missing.</p>
  
  <p>I would prefer a solution in bash or perhaps using awk, rather than a python one, so that I can learn how to use it. </p>