Hi All,
Requirement :-
I have shell script in kern shell ,have to run alternate week per month
example-today's date is 27 Mar 2013 and my script will run today then for the next time when it will run it should check 1st what was the last run date(27 Mar 2013) if it is matched 15days from current date then run else sent a mail with waning mgs.
i have a AWK command it is checking only within a month
date +%Y:%m:%d|awk -vFS=":" -vOFS=":" '{$3=$3-3;print}'
suppose i am checking 20days from current date it is give some negative value
ex-2013:03:-8
Please give some advice me so i can move forward.
Thank you All.
Regards,
Krupa