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.

Posted: January 6th, 2014 at 8:05 am
Last Updated on: April 27th, 2017 at 4:40 am