title: Unix 'find' + 'grep' syntax vs. awk
body: <p>I was using this line to find the phrase, 'B206' within files in the directory I was in and all of its sub directories.</p>
  
  <pre><code>find . -exec grep -s "B206" '{}' \; -print 
  </code></pre>
  
  <p>It crashes when it tries to read certain files and actually changes the title bar in putty to a bunch of weird characters</p>
  
  <p>For example, it crashes all the time when it hits a jpg file that's in a sub directory.  The title bar changes, and in the screen, there exists:</p>
  
  <pre><code>ÐF»*rkNQeË+Z×³kU£~MÞçÄZ½ªéúýØâÑn¡[U+Þ4ªÒ9/ê£&lt;ú¯4}[IÓ­îÃ¥K»G%Ý³¢
  </code></pre>
  
  <p>Forcing me to Ctrl+C out back to the prompt and then exit out.</p>
  
  <p>Any way to add code to this line that will exclude jpg files?  Even better, a piece of code where I can add a list of extensions to exclude?
  <hr>
  EDIT:
  <br>-not &amp; -I do not work for me<hr>
  I found this <a href="https://stackoverflow.com/questions/221921/grep-exclude-include-syntax-do-not-grep-through-certain-files">similar question</a> also related somewhat to mine</p>