RE: [ILUG] $yesterday

From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Tue 23 Oct 2001 - 17:30:45 IST


> All,
>
> Without going OTT, can anyone think of a way of echoing out a $yesterday
> variable (i.e. yesterdays date! :P )?
> Has the date binary got some fancy footwork to do this already ? Running
> *cough* Solaris 2.6 :(

With GNU date:

$ date -d yesterday
Mon Oct 22 17:29:55 IST 2001
$

Later,
Kenn



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:52 GMT