is there a way using GNU (Solaris 8) methods of obtaining the day before a given day?
i.e. 2007-09-09.... I would like the date a day before it so output would be 2007-09-08. Format YYYY-MM-DD
I know I can subtract the day number using cut and expr but it would get tricky if the date was 2007-09-01 for example and would also make my script long with all the permutations of checking months, years etc.