Tony Esposito wrote:
perl -p -i.bak -e 's/CONSTANT/VARIABLE/' C:\test.txt

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 !!!

Windows does not work with single quotes:

perl -p -i.bak -e "s/CONSTANT/VARIABLE/" C:\test.txt


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

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


Reply via email to