Re: date stuff


Subject: Re: date stuff
From: Arthur Corliss (arthur@corlissfamily.org)
Date: Sun Apr 21 2002 - 17:10:21 AKDT


> I'm trying to create a file that includes the date the file was
> created as part of the filename. Any suggestions?

How are you creating the file (i.e., in a script, from the shell, etc.)? If
you just need to do something from bash, something like:

  touch foo-`date +%Y%m%d`.log

would do. In Perl, see 'perldoc -f localtime', and so on. . .

--

--Arthur Corliss Bolverk's Lair -- http://arthur.corlissfamily.org/ Digital Mages -- http://www.digitalmages.com/ "Live Free or Die, the Only Way to Live" -- NH State Motto

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Apr 22 2002 - 11:05:23 AKDT