home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9303 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1017 b   |  24 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!news.unomaha.edu!odin!bacon
  3. From: bacon@odin.unomaha.edu (Melissa Bacon)
  4. Subject: Redirecting the date as a file name
  5. Message-ID: <bacon.711843971@odin>
  6. Keywords: redirection filenames date-to-filename
  7. Sender: news@news.unomaha.edu (UNO Network News Server)
  8. Organization: University of Nebraska at Omaha
  9. Date: Wed, 22 Jul 1992 22:26:11 GMT
  10. Lines: 12
  11.  
  12. I'm setting up a .logout file that shows files that I have edited or
  13. added in the past day.  So far, so good.  This was no problem.  However,
  14. now what I want to do is to take the system date and tee my list of
  15. files to another file with the date (  date | cut -c5-10 ) as the
  16. filename.  How can I redirect the output of that command and use it to
  17. create a filename (for example, today's file should have the name
  18. 'Jul 22' ?  Is it possible to save the output as a string which then
  19. could be outputted as the filename?
  20.  
  21. Thanks for any and all help.
  22.  
  23. Melissa
  24.