desktophero
Programmer
Does anyone have any suggestions for using DATE to calculate yesterday's date? I am writing a script file that runs binaries. The binaries require a specific date in the command line. I think that I have tried everything (that I can think of) to format a variable as the date -1 day.
I have gone to the lengths of capturing just the day of the date, and subracting one. This of course lends itself to disaster - or a lot of script - to deal with the change of years, months, etc.
Any suggestions?
Thanks,
Jason
I have gone to the lengths of capturing just the day of the date, and subracting one. This of course lends itself to disaster - or a lot of script - to deal with the change of years, months, etc.
Any suggestions?
Thanks,
Jason