Get the recent files of two different filename patterns.
Hi Admin and all,
Hope you are doing well. I have an urgent question to ask..
I am new to use WinSCP. Recently, I am asked to download two files with different patterns from a remote directory via WinSCP. That directory contains files with naming like Fin_REPORT_100410.csv, User_REPORT_180410.csv, Asset_Report_100310.csv..etc. Obviously, the number are referring to the DDMMYY format... The files are generated weekly.
So, my question is... How can I use a script to get the latest files with only the pattern of Fin_Report_ and Asset_Report_ ?
Regards,
Kelvin
Hope you are doing well. I have an urgent question to ask..
I am new to use WinSCP. Recently, I am asked to download two files with different patterns from a remote directory via WinSCP. That directory contains files with naming like Fin_REPORT_100410.csv, User_REPORT_180410.csv, Asset_Report_100310.csv..etc. Obviously, the number are referring to the DDMMYY format... The files are generated weekly.
So, my question is... How can I use a script to get the latest files with only the pattern of Fin_Report_ and Asset_Report_ ?
Regards,
Kelvin