> -----Original Message-----
> From: Tony Esposito [mailto:tony1234567...@yahoo.co.uk] 
> Sent: Monday, August 24, 2009 10:46
> To: Beginners Perl
> Cc: tony1234567...@yahoo.co.uk
> Subject: one liner in Windows to replace string
> 
> perl -p -i.bak -e 's/CONSTANT/VARIABLE/' C:\test.txt
> 
        I created the file and ran the one liner. Made the changes as
expected. Created the back up,etc.

        Running as 5.8.9 build 825 under XP SP 1

         If you have any questions and/or problems, please let me know.
         Thanks.
 
Wags ;)
David R. Wagner
Senior Programmer Analyst
FedEx Freight Systems
1.719.484.2097 Tel
1.719.484.2419 Fax
1.408.623.5963 Cell
http://fedex.com/us 

> Trying to replace a string with this one line perl ... in 
> Windows it does not seem to work ...
> 
> File test.txt contents is ...
> 
> CONSTANT 100
> CONSTANT 200
> 
> nothing changes ... acts as if it does not 'see' the CONSTANT string.
> 
> Help because it looks like it should work !!!
> 
> 
>       
> 

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


          • RE: o... Bob McConnell
            • ... Tony Esposito
          • Re: o... Shawn H. Corey
            • ... Tony Esposito
              • ... Telemachus
              • ... Shawn H. Corey
              • ... Wagner, David --- Senior Programmer Analyst --- CFS
          • RE: o... Wagner, David --- Senior Programmer Analyst --- CFS
        • RE: one l... Wagner, David --- Senior Programmer Analyst --- CFS
  • Re: one liner in Windo... Telemachus
  • RE: one liner in Windo... Wagner, David --- Senior Programmer Analyst --- CFS

Reply via email to