Obtaining yesterday's date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to get yesterday's date in YYYYMMDD format.

Anyone know if RHES 4.x has GNU date that allows
yesterday=$(date -d "-1 day" '+%Y%m%d')



& if there's no GNU date, how do we go about obtaining it?



Thanks

Sun
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux