I hope i do not get spanked.
It is something similar on this post:
I have tasks that create the following files but we do manually check their existence. Would like to automate the file checking.
The following file (2013_03_27_021208-batch.x
ls) has YYYY_MM_DD_whatever. We can control the year, day and month but the rest can be anything and is time stamped today's date at 2:00am.
To do: Need to check of the existence of that file from Monday through Friday
The are five files:YYYYMMDD_whatever_cl
To Do: Need to check the existence of *_clm.txt,*_proc.txt,*_pym
t.txt and *_pymt_li.txt from Monday to Friday. But, on Monday need to check the existence of the *_cc.txt
There is one file:W_UANETPX_27-MAR-2013
To Do: Need to check the existence of the file every day according to the pattern and DD-MONTH-YYYY
There is one folder: cg322701
On folder cg322701 we have to make sure the following file exist:
UPI_YYYYMMDD.txt exists. DD = Today's date - 1 day
Hopefully this gives me enough intelligence to automate my other tasks