Re: Filenames

2002-01-30 Thread morris_r
On Wed, 30 Jan 2002, John W. Krahn wrote: > Roger Morris wrote: > > > > At 04:38 PM 1/30/2002 -0500, you wrote: > > > > > And of course so will the perl function time(). I'm more used to bash and bash scripts. I was going to look up the function in perl, honest I was. -- To unsubscribe, e

Re: Filenames

2002-01-30 Thread Jeff 'japhy' Pinyan
On Jan 30, John W. Krahn said: >Roger Morris wrote: >> >> At 04:38 PM 1/30/2002 -0500, you wrote: >> > >> >Could someone please help out with the problem of dynamically changing the >> >name of an output file? I would like to concatenate the date to the name >> >of the output file so that each

Re: Filenames

2002-01-30 Thread John W. Krahn
Roger Morris wrote: > > At 04:38 PM 1/30/2002 -0500, you wrote: > > > >Could someone please help out with the problem of dynamically changing the > >name of an output file? I would like to concatenate the date to the name > >of the output file so that each time I run my script, the name of the >

RE: Filenames

2002-01-30 Thread Wagner-David
Here is a starting place: #!perl -w my ($day, $mon, $year) = (localtime(time))[3..5]; # pull day, mon, year $year %= 100; # I trim to 2 digits, but could add 1900 for 4 # digit

Re: Filenames

2002-01-30 Thread Roger Morris
At 04:38 PM 1/30/2002 -0500, you wrote: >Hi, > >Could someone please help out with the problem of dynamically changing the >name of an output file? I would like to concatenate the date to the name >of the output file so that each time I run my script, the name of the >output file is different.