title: filtering file from the result of find command
body: <p>I want to look for a particular pattern in a directory of files and want to exclude certain patterns while the result is displayed.</p>
  
  <p>I use the following command</p>
  
  <pre><code>find . -type f -exec grep -il 'foo' {} \; | find . -not -name "*.jar" -not -name "*.gz" -not -name "*.log" 2&gt;/dev/null
  </code></pre>
  
  <p>when the result is displayed, I see the following error message</p>
  
  <pre><code>find: grep terminated by signal 13
  </code></pre>
  
  <p>Can someone please guide me as to why this error message is there and if there is a better command to use for getting the desired result (basically excluding jar files or log files or some other type of files from the result set)?</p>