From: Sean_O'Reilly@WearGuard.com
Date: Mon Nov 25 2002 - 10:20:45 EST
Thanks to all who responded. The following is the response from Anil
Rajapure. It is precisely what I am looking for.
YESTERDAY=$(TZ=$(date +%Z)+24; date '+%b %e')
Thanks again too all,
Sean
> -----Original Message-----
> From: O'Reilly, Sean
> Sent: Friday, November 22, 2002 3:44 PM
> To: hpux-admin@dutchworks.nl
> Subject: Scripting question
>
> Admins:
>
> I need to write a short script to find specific files and mail them out to
> individual users.
> These are manifest files created at 9:00 AM with the previous days date
> appended to the end
> of the file.
>
> My question is, how can I write this script to get the previous days date?
> Does the date command do this?
>
> Thanks in advance, will summarize
>
> Sean O'Reilly
> Unix System Administrator
> WearGuard-Crest
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:22 EDT