|
Help in automating dates in ksh script
I need to run a command at the end of a backup job and this command will produce a report of what my backup jobs have collected in the previous day. The real problem is that this binary works with absolute dates only, so I should have to modify the script every single time I need it to work. It assumes that start date is given as -s mm/dd/yyyy and end date is given as -e mm/dd/yyyy. It will be enough to me that end date is equal to "today" and start date is equal to something like "today - n days". Of course I can pass a variable to the binary, but I don't know how to build them. I would like to obtain something I can forget about
Thanks
Luca
|