Hello this is my first post in this forum , I dont want to be unhappy..
I am writing one script but facing difficulty to find the latest file with some new pattern
My requirement is
-
The file is coming like "ABCD-23220140303" at FTP server once in a week.
-
script will run on daily basis and will pick up and download the file to Aix machine if file is available.
-
Script will check status of file on daily basis, if file is available it should download.
the file name is like varies for each week like..
1st week....ABCD-23220140301 MARCH 1ST WEEK 2014
2nd week....ABCD-23220140302
3rd week....ABCD-23220140303
4th week....ABCD-23220140304
WANTED TO DWONLOAD ONLY LATEST FILE.