title: How to find all files with a particular parent directory in linux?
body: <p>How do you find all files with a particular parent directory in the linux command terminal?</p>
  
  <p>I know to find all files using <code>find</code> like so:</p>
  
  <pre><code>find . -name filename.extension
  </code></pre>
  
  <p>But is it possible to find all <code>filename.extension</code> files with the parent directory of <code>foldername</code>?</p>
  
  <p>I have tried the following but this does not work:</p>
  
  <pre><code>find . -name foldername/filename.extension
  </code></pre>
  
  <p>And I cannot find any example of how to do this.</p>
  
  <p>So some example results I would expect are as so:</p>
  
  <pre><code>./example/project/website/foldername/filename.extension
  ./folder/demo/foldername/filename.extension
  ./more/files/foldername/filename.extension
  ./business/assets/foldername/filename.extension
  ./steven/foldername/filename.extension
  </code></pre>
  
  <p>Is there anyway to do this?</p>