Return to BSD News archive
Xref: sserve comp.unix.bsd:14573 comp.unix.misc:13489 comp.unix.programmer:19237 comp.unix.questions:53615 Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!pipex!uknet!daphne.ecmwf.co.uk!fulla!cd5 From: cd5@fulla.ecmwf.co.uk (Mike Connally) Newsgroups: comp.unix.bsd,comp.unix.misc,comp.unix.programmer,comp.unix.questions Subject: Re: Q: How can I get yesterday's date? Date: 16 Aug 1994 09:13:47 GMT Organization: ECMWF Lines: 25 Sender: cd5@fulla (Mike Connally) Distribution: world Message-ID: <32q00b$9vn@daphne.ecmwf.co.uk> References: <Pine.3.89.9408160216.A15886-0100000@worf.uwsp.edu> NNTP-Posting-Host: fulla.ecmwf.co.uk In article <Pine.3.89.9408160216.A15886-0100000@worf.uwsp.edu>, pzuge@worf.uwsp.edu (Peter Zuge) writes: |> I am using BSD/386 unix: |> |> I need to create a script that will run at a certain time everyday |> "getting" ( via ftp ) a file with yesterday's date. No help to you, I'm afraid, but for designers of future shells, this is yet another thing which should be addressed. For example, this is how easy it is to do in the NOS/VE command language, SCL: FUNCTION $yesterday VAR one_day : time_increment = 0-0-1 yesterday : date_time = $date_time($date) - one_day VAREND EXIT function WITH yesterday FUNCEND $yesterday -- Mike Connally, Systems Consultant | internet: Mike.Connally@cdl.cdc.com Control Data Systems plc | 3 Roundwood Avenue | My opinions may or may not be my own. Stockley Park, Uxbridge UB11 1AG | I borrow freely. England | Share them at your own discretion.