How to find a file created in UNIX every monday.???

Hi All

Any one please suggest me...

I have one directory every monday one file will be created in that directory. so if the file is created on monday or not i need check first.
How can write a script??? if the file is not created i want to quit from script.

Thanks
K.Srinivas

While we recognize users have all different abilities, you have not supplied anything as far as what you have tried nor any specifics.

Hello,

Could you please use the following code and let me know. It will shopw that file is exist or not.

Note: Where file

$ cat script.ksh
file="filename"
if [[ -e ${file} ]]
then
echo "file is present there."
else
echo "not present"
 fi

Please run the file as follows.

ksh script.ksh

Output will be as follows.

file is present there.

Thanks,
R. Singh

Thanks for your Reply

just i want to check the file is created on monday or not..?

Hello,

please use the crontab facility for the same you can shedule the script to run on every Monday for same.

Hope this will help you.

Thanks,
R. Singh

Do you mean last monday or just any Monday?