Quantcast
Viewing latest article 2
Browse Latest Browse All 2

How to find multiple files with specific pattern using or in find command

Is it possible within the find command to use or to specify multiple patterns to look for using regex or any other means? For example, I am looking for all files that aren't .bashrc or .profile in a certain directory. The following doesn't function, but gets the point across of what I am trying accomplish:

find . ! -name "(.bashrc|.profile)"

Thanks!


Viewing latest article 2
Browse Latest Browse All 2

Trending Articles