Quantcast
Channel: How to find multiple files with specific pattern using or in find command - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2

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

$
0
0

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 all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>