Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FTP get file based on date

sliderrulesMay 14 2015 — edited May 14 2015

Hi,

Apologies if this post is in the wrong forum.

I am trying to ftp get [file_ddmmyyyy.csv] of a Linux ftp server based on the file date prefix. There will be many files in the ftp directory with the same file name but the date prefix will be different.

For example:

file_31012015.csv

file_28022015.csv

file_31032015.csv

file_30042015.csv

In this example I need to get file_30042015.csv

Is it possible to derive the file based on the most recent one without specifying the full file name or is there a way to use last day of last month function?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2015
Added on May 14 2015
1 comment
1,210 views