home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10170 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  784 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!yale!mintaka.lcs.mit.edu!chaos!random.ccs.northeastern.edu!simony
  2. From: simony@ccs.northeastern.edu (Simon Yeung)
  3. Newsgroups: comp.unix.questions
  4. Subject: Question about date.
  5. Message-ID: <1992Aug19.023924.3884@random.ccs.northeastern.edu>
  6. Date: 19 Aug 92 02:39:24 GMT
  7. Sender: news@random.ccs.northeastern.edu
  8. Distribution: usa
  9. Organization: College of Computer Science, Northeastern University
  10. Lines: 10
  11. Originator: simony@sun3160a.ccs.northeastern.edu
  12.  
  13.  
  14. I am writing a C shell script in which the user enter a number n
  15. and the script needs to find the date which is the nth day before
  16. the current date.  Can I do this by using some Unix commands?
  17.  
  18. I don't want to write a program for it, unless I have to.
  19.  
  20. Thanks.
  21.  
  22. --Simon
  23.