title: How to exclude multiple subdirectories when using "find" command?
body: <p>I was looking for "*.py" files, and exclude both "build" and "bin" directories. I used this command:</p>
  
  <pre><code>find * -path "build" -prune -path "bin" -prune -o -type f \( -name "*.py" \) -print &gt; findpyfiles.txt
  </code></pre>
  
  <p>The "findpyfiles.txt" still contains results started with "bin/".
  How to fix it?</p>