The following works under SuSE 6.2 version of Linux. date --date yesterday +%m%d%y I would incorporate it in something like: #!/bin/bash export TODAY=`date +%m%d%y` export YESTERDAY=`date --date yesterday +%m%d%y` program_to_create_file > FILE$TODAY.txt diff FILE$YESTERDAY.txt FILE$TODAY.txt ##EOF "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.
begin:vcard n:Hopkins;Keith tel;cell:404-307-5012 x-mozilla-html:FALSE org:<img src="http://www.psn.net/~keithh/images/penguin.gif">;Hopkins Network Engineering adr:;;POBox 671345;Marietta;Georgia;30066;USA version:2.1 email;internet:[EMAIL PROTECTED] fn:Keith Hopkins end:vcard
