title: How can I `find` files matching pattern within a directory matching another pattern from the command line?
body: <p>Say I want to find all files in <code>/Path</code> named <code>file_name*</code>. Easy:</p>
  
  <pre><code>$ find /Path -name "file_name*"
  /Path/foo1/file_name1.txt
  /Path/foo2/file_name2.txt
  /Path/bar3/file_name3.txt
  /Path/bar4/file_name4.txt
  </code></pre>
  
  <p>What if I only want to search subdirectories like <code>bar</code>?</p>
  
  <p>I could pipe the results, but this is highly inefficient.</p>
  
  <pre><code>$ find /Path -name "file_name*" | grep "bar"
  /Path/bar3/file_name3.txt
  /Path/bar4/file_name4.txt
  </code></pre>
  
  <p><strong>Is there a way to get them all in the <code>find</code> and to skip searching directories not matching <code>bar</code>?</strong></p>
  
  <p><em>Note:</em> If I search <code>/Path/bar3</code> specifically results come back instantly. But if I search just <code>/Path</code> and then <code>grep</code> for <code>bar</code> it takes 30-60 seconds. This is why piping to <code>grep</code> isn't acceptable.</p>