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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started