<p>I know that to find all the <code>.h</code> files I need to use:</p>

<pre><code>find . -name "*.h"
</code></pre>

<p>but how to find all the <code>.h</code> AND <code>.cpp</code> files?</p>

```
```
find . -name \*.h -print -o -name \*.cpp -print
```
```
or
```
```
find . \( -name \*.h -o -name \*.cpp \) -print
```
```