How to combine conditions when using find command

When using the find command you may want to combine conditions, e.g. using an OR.

Here’s a way to do that.

find . -type f  \( -name "*deb" -o -name "*vmdk" \)

This command finds all files in current directory ending with db or vmdk.

Leave a Reply

Your email address will not be published. Required fields are marked *