title: Awk: move files when they meet a certain criterion
body: <p>I'm trying to figure out a way to move a bunch of files into a subdirectory when they meet an <em>if</em> criterion/condition with awk. Do you know how it can be done?</p>
  
  <pre><code> for f in *.txt; do awk '{if ( $1 == "rainbow" &amp;&amp; $3 == "unicorn" &amp;&amp; $4 == "murder" &amp;&amp; $5 == "vampire") print FILENAME}' $f; done
  </code></pre>
  
  <p>instead of printing the filename, I would like my code to move the files to a certain directory.</p>
  
  <p>Thanks</p>