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. HTH, Senthil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
