title: BASH: How to use patterns properly with find
body: <p>I am desperately trying to write a pattern for find command, but it never works. I want to search for all <code>*.txt</code> and <code>*.h</code> files:</p>
  
  <pre><code>find . -name "*(*.h|*.txt)"
  
  find . -name "(*.h|*.txt)"
  
  find . -name *(*.h|*.txt)
  
  find . -name "*\(*.h|*.txt\)"
  
  find . -name '*("*.h"|"*.txt")'
  </code></pre>