Question: How to find multiple files in linux using one find command? I am trying to download multiple files from a linux server where i need

How to find multiple files in linux using one find command?

I am trying to download multiple files from a linux server where i need to find the files depending on a name pattern, my file pattern is like this FCL_20230116_20230117_051156.zip, VET_20230116_20230117_051156.zip, I am able to get the filenames "FCL_20230116" from a database. but i want to search for this filenames in the server and download them. I am able to perform list on the folder using ls command

 ls {FCL_20230117*,VET_20230117*} 

my filenames are not same all the time.

i am looking for some query like this

find . directory -type f -name {FCL_20230117*,VET_20230117*} 

or a regex command.

is there a command like this ? Please help. Thank you very much

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!