Question: How to combine scp and find in a single command ? Hi , I have a linux server from which i need to download files(zip)

How to combine scp and find in a single command ?

Hi , I have a linux server from which i need to download files(zip) to my local machine that is generated for a particular filename using scp and find command, my filename syntax is like this

WSB_20230105_20230106_052320.zip.bz2 ,i need to download only the files with filenames containing "20230105".

I have tried this

find . /app/weblogic/etsitf1/prestige/outbound/mis -type f -name "*_20230105_20230106*" -exec scp {} /tmp/tmp_dat_files \

which is not working for me . Please help

Thank you

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!