title: print all but select fields in awk
body: <p>I have a large file with hundreds of columns that I want to remove only the third and fourth columns from and print the rest to a file.  My initial idea was to make an awk script like <code>awk '{print $1, $2, for (i=$5; i &lt;= NF; i++) print $i }' file &gt; outfile</code>.  However, this code does not work.  </p>
  
  <p>I then tried: </p>
  
  <pre><code>awk '{for(i = 1; i&lt;=NF; i++)
  if(i == 3 || i == 4) continue
  else
  print($i)}' file &gt; outfile
  </code></pre>
  
  <p>But this just printed everything out in one field.  It would be possible to split this up into two scripts and combine them with unix <code>paste</code> but this seems like something that should be able to be done in one line.</p>