I am happy that it works with double quotes BUT now, when I try to get all files in a directory with a certain extension, the following does not work ...
perl -p -i.bak -e "'s/CONSTANT/VARIABLE/'" C:\*.txt does not like th leading * in the file name when I try to pull all .txt files ... Help again. ________________________________ From: Shawn H. Corey <shawnhco...@gmail.com> To: "Wagner, David --- Senior Programmer Analyst --- CFS" <david.wag...@fedex.com> Cc: Tony Esposito <tony1234567...@yahoo.co.uk>; Beginners Perl <beginners@perl.org> Sent: Monday, 24 August, 2009 12:57:27 Subject: Re: one liner in Windows to replace string Wagner, David --- Senior Programmer Analyst --- CFS wrote: > I ran under windows with what Tony sent, both the cmd and a korn > shell and both worked and updated as expected.. > > If you have any questions and/or problems, please let me know. > Thanks. What version of Windows? The last time I used Windows was XP and it would see single quotes as: perl -p -i.bak -e "'s/CONSTANT/VARIABLE/'" C:\test.txt which, of course, don't work. -- 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/