>"Jenda Krynicky" <[EMAIL PROTECTED]> wrote:
>>From: GREG CARRARA <[EMAIL PROTECTED]>
>> Hello,
>> I'm trying to search for a word and replace it multiple files at a
>> windows command prompt with the following:
>> 
>> perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension
>> 
>> This errors out.  I've tried to replace the delimiters / with - to no
>> effect. Does someone know how to alter this to make it work under
>> Windows? thanks! gc
>
>perl -pi -e "s/wordToFind/replaceWithThisWord/gi" *.fileExtension
>
>Change the type of quotes and put a space behind them (though I think 
>the second thing was just a typo:)
>
>Jenda
>===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
>When it comes to wine, women and song, wizards are allowed 
>to get drunk and croon as much as they like.
>       -- Terry Pratchett in Sourcery

Thanks for the response!  However, when I try this
perl -pi -e "s/wordToFind/replaceWithThisWord/gi" *.ext 
with ActivePerl 5.6.1, on Windows 2000, I receive the error:

CAN'T DO IN PLACE EDIT WITHOUT BACKUP

Could this have something to do with Perl not reading from and writing to a
file at the same time?



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to