title: is it possible to print different lines to different output files using awk
body: <p>I want to print different lines to different output files using awk, depending on different conditions, like</p>
  
  <pre><code>awk '{if($2&gt;10) print &gt; outfile1; else print &gt; outfile2}' infile
  </code></pre>
  
  <p>but this script doesn't work
  how to modify it?
  thanks!></p>