[SLL] newest "date" in RHL coreutils messes up my script
Andrew Sweger
andrew at sweger.net
Fri Jun 1 10:37:32 PDT 2007
Try,
date -d '1jun07 -1 day'
On Fri, 1 Jun 2007, William Kreuter wrote:
> When I recently did an up2date on coreutils, "date"
> updated to 5.2.1 from 4.5.3. This caused the result
> of:
>
> date -d 0jun07
>
> to change from the desired "Thu May 31 00:00:00 PDT
> 2007" to "invalid date `0jun07'".
>
> My script needs to obtain the previous day's date
> on each day of the month. Since I don't see an
> argument to date which would do the reverse of
> "date +%s", please give me some ideas with which I
> could keep my bash script nice and compact.
>
> As a stopgap, I reinstalled date 4.5.3.
>
> Billy
>
--
Andrew B. Sweger -- The great thing about multitasking is that several
things can go wrong at once.
More information about the linux-list
mailing list