title: Use find command but exclude files in two directories
body: <p>I want to find files that end with <code>_peaks.bed</code>, but exclude files in the <code>tmp</code> and <code>scripts</code> folders.</p>
  
  <p>My command is like this:</p>
  
  <pre><code> find . -type f \( -name "*_peaks.bed" ! -name "*tmp*" ! -name "*scripts*" \)
  </code></pre>
  
  <p>But it didn't work. The files in <code>tmp</code> and <code>script</code> folder will still be displayed.</p>
  
  <p>Does anyone have ideas about this?</p>