🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bc.unix
Article #70

Re: Need help with script

#70
From: Rick Younie
Date: Fri, 06 Dec 2002 17:42
11 lines
1379 bytes
tom <moodade@optonline.net> wrote:
> I'm trying to write a script that will return the last business day's 
> date in mmddyy format.
> Does anybody know of an easy way to do this.

GNU date will do this for you.  Some variation on
  date -d yesterday +%d/%b/%Y
should work.  The man page describes the format strings.

Rick
-- 
Technical Details
Message-ID: <asqni9$b51$2@luna.vcn.bc.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!newspump.sol.net!news-feed.riddles.org.uk!lios!news.gweep.ca!nntp.cs.ubc.ca!nntp.itservices.ubc.ca!news.vcn.bc.ca!not-for-mail
References: <3DDC58AE.6000305@optonline.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114424,6ad515f0eb81bf9
X-Google-Attributes: gid114424,public
X-Google-ArrivalTime: 2002-12-06 09:42:58 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!newspump.sol.net!news-feed.riddles.org.uk!lios!news.gweep.ca!nntp.cs.ubc.ca!nntp.itservices.ubc.ca!news.vcn.bc.ca!not-for-mail
From: Rick Younie <rick@vcn.bc.ca>
Newsgroups: bc.unix
Subject: Re: Need help with script
Date: Fri, 6 Dec 2002 17:42:33 +0000 (UTC)
Organization: Vancouver Community Network
Lines: 11
Message-ID: <asqni9$b51$2@luna.vcn.bc.ca>
References: <3DDC58AE.6000305@optonline.net>
NNTP-Posting-Host: felix.vcn.bc.ca
X-Trace: luna.vcn.bc.ca 1039196553 11425 207.102.64.2 (6 Dec 2002 17:42:33 GMT)
X-Complaints-To: abuse@vcn.bc.ca
NNTP-Posting-Date: Fri, 6 Dec 2002 17:42:33 +0000 (UTC)
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.8 (sun4u))