Batch Script to Copy Files

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
refra
Naik
Posts: 70
Joined: Wed Dec 06, 2006 3:51 pm

Batch Script to Copy Files

Post by refra »

I need a script according to the following

/local/0102
/local/9966
/local/8845

/reports/0102_Optimization_Report_2020-02-27T150359306Z.xlsx
/reports/9966_Optimization_Report_2020-02-27T150359306Z.xlsx
/reports/8845_Optimization_Report_2020-02-27T150359306Z.xlsx

Now need copy a file based on time stamp and file extension /reports/0102_Optimization_Report_2020-02-27T150359306Z.xlsx to /local/0102
Now need copy a file based on time stamp and file extension /reports/9966_Optimization_Report_2020-02-27T150359306Z.xlsx to /local/9966
Now need copy a file based on time stamp and file extension /reports/8845_Optimization_Report_2020-02-27T150359306Z.xlsx to /local/8845
Post Reply