Re: substituting a string in a file

2002-08-21 Thread david
Felix Geerinckx wrote: >> s/\d{8}/$date/go; > > Why are you introducing the compile-once-modifier when there is no > variable to interpolate in the pattern? > oops.. just realize that... better pay more attention next time :-) > Also, if you are taking on the job of correcting other posters' (a

Re: substituting a string in a file

2002-08-21 Thread Felix Geerinckx
on Wed, 21 Aug 2002 17:30:17 GMT, David wrote: > Felix Geerinckx wrote: >> s/\d{8}/$date/g; > > s/\d{8}/$date/go; Why are you introducing the compile-once-modifier when there is no variable to interpolate in the pattern? Also, if you are taking on the job of correcting other posters

Re: substituting a string in a file

2002-08-21 Thread david
Felix Geerinckx wrote: > on Wed, 21 Aug 2002 11:33:06 GMT, [EMAIL PROTECTED] wrote: > >> I'm trying to substitute all references to a date (of the format >> MMDD) in a file to the current date. I'm obviously doing >> something wrong here ('cause it doesn't work!:}), as no change is >> made

Re: substituting a string in a file

2002-08-21 Thread Sudarshan Raghavan
On Wed, 21 Aug 2002 [EMAIL PROTECTED] wrote: > Hi, > > I'm trying to substitute all references to a date (of the format > MMDD) in a file to the current date. I'm obviously doing something > wrong here ('cause it doesn't work!:}), as no change is made to the > config.ini file. > the $date

Re: substituting a string in a file

2002-08-21 Thread Felix Geerinckx
on Wed, 21 Aug 2002 11:33:06 GMT, [EMAIL PROTECTED] wrote: > I'm trying to substitute all references to a date (of the format > MMDD) in a file to the current date. I'm obviously doing > something wrong here ('cause it doesn't work!:}), as no change is > made to the config.ini file. > open

substituting a string in a file

2002-08-21 Thread afarrell
Hi, I'm trying to substitute all references to a date (of the format MMDD) in a file to the current date. I'm obviously doing something wrong here ('cause it doesn't work!:}), as no change is made to the config.ini file. the $date variable is derived form another part of my script. thanks,