Run your script at 23:58 :-)
 
Yechiel Adar
Mehish
----- Original Message -----
Sent: Wednesday, November 13, 2002 8:24 PM
Subject: OT ksh day of week yesterday

Will someone take pity on this poor VMS'er lost in a unix world??

I'm trying to create a script (ksh) that reads a log file created yesterday.  The log files are created with `date +%a` appended to the end of the log file name.  Last night a log file was created called arc_indexlog.Tue  It's easy enough to get today

   TDAY="`date +%a`"
   grep -i "ora" /orasrv/ops/maint/logs/arc_indexlog.$TDAY
   grep -i "ora" /orasrv/ops/maint/logs/adv_indexlog.$TDAY

but how do I get yesterday in the same format? (i.e., Tue instead of Wed)   I man'd date, but it was no help.

Thanks for any help.

Barb



Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD

Reply via email to