find

Multiple Patterns

You can provide find with multiple paterns by using the -o option.

The following example looks for all files with the .cpp or .hpp file extension in the current directory.

Combining With sed

find, a program which finds files, lends itself to working well in conjuction with sed, a program for modifying the contents of a file.