title: Stat with find not excluding files
body: <p>Within a bash script, I am trying to find files based on their octet using stat in combination with find, however I want to skip some files (file1, file2, etc.).  However this doesn't appear to be working.  Why is this and how I can fix it?  Is this the best way of doing this?</p>
  
  <pre><code>$(stat --format %a 2&gt;&amp;1 $(find /example/dir -type f -not \( -name 'file1' -o \
         -name 'file2' -o -name 'file3' -o -name 'file4' \) -prune) | egrep "777|755"
  </code></pre>