Using the Linux ‘find’ command with multiple filename patterns
By Alvin Alexander. Last updated: January 1 2018
Someone asked me the other day how they could search for files with different names with one Linux find
command. They wanted to create a list of all files that ended with the extensions .class and .sh.
Although this is actually very easy to do with the find
command, the syntax is obscure and probably not well documented, so let's look at how to do this.