Main Menu

Search

LINUX: FIND COMMAND TO SEARCH MULTIPLE FILENAME PATTERNS

Below is command to use.

find . -name “<filename1>" -o -name "<filename2>" -o -name "<filename>" …… -o -name "<filenameN>"

Sample Output.

 $ find . -name "emoc*" -o -name "cacao*" 
 
./opscenter/config/etc/opt/sun/cacao2 
./opscenter/config/etc/opt/sun/cacao2/instances/default/private/cacao.properties 
./opscenter/config/etc/opt/sun/cacao2/instances/scn-proxy/private/cacao.properties 
./opscenter/logs/var/log/emoc_template_pccheck.log.1 
./opscenter/logs/var/log/emoc_template_pccheck.log.10 

 


Products to which Article Applies

All Linux Operating Systems 

Search Keywords: Linux UNIX multiple search searching command commands find finding more file files pattern patterns 

 

Article Author: Tarun Boyella

 

No comments:

Post a Comment