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