Thanks Shawn...that worked...
I think it was everything to do with double quotes on windows. -----Original Message----- From: Mr. Shawn H. Corey [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 11:50 PM To: beginners@perl.org Subject: Re: Perl one liner.... On Tue, 2006-23-05 at 11:36 -0700, M Senthil Kumar wrote: > > On Tue, 23 May 2006, Nagasamudram, Prasanna Kumar wrote: > > |I'm trying to do a find and replace on the file content using the > |following command on windows. > > [snipped] > > |perl -p -i.bak -e 's/FOO/BAR/g' abc.txt > > [snipped] > > Hi, > Try: > > $ perl -pi.bak -e 's/FOO/BAR/' abc.txt > > Note: abc.txt has BAR, abc.txt.bak has FOO after execution. Try: perl -pi.bak -e "s/FOO/BAR/g" abc.txt Last time I was forced to use Windows, it went goofy on single quotes. -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>