Hello Mark,  Might try :

        date "+(your favorite format)" --date="1 day ago"

                Hth,  JimL
On Tue, 21 Mar 2000, Mark A. Swope wrote:
> Sorry if this isn't the correct group for this...
> I'm trying to write a short script that is going to be run as
> a cron job.  In it I want to create a file that is named something
> like "filenameYYYYMMDD.txt"    I can do this just fine.
> 
> However, in the script, I'd like to do a diff with the same file
> that was created the day before and I'm having trouble figuring out
> how to do that.
> 
> Can anyone give me an example or a pointer to a good example?
> 
> Many thanks and kindest regards,
> Mark Swope
> 
> ---------------------------------------------------------------------------- 
> ---------
> MilliHelen - n. The amount of Beauty required to launch 1 ship. 
> 

       +----------------------------------------------------------------+
       | James   W.   Laferriere | System  Techniques | Give me VMS     |
       | Network        Engineer | 25416      22nd So |  Give me Linux  |
       | [EMAIL PROTECTED] | DesMoines WA 98198 |   only  on  AXP |
       +----------------------------------------------------------------+

Reply via email to