Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions