Hi, I'm trying to substitute a string with a Mason variable in a bunch of files and not having any luck. For instance I want to change the string 'testtext' to '<% $bURL %>' in a file:
perl -w -i -p -e "s/testtext/'<% \$bURL %>'/g" test.html ..substitutes '<% %>' I've tried quotes, double quotes, escape characters in various configurations, with no luck. perl -e "print '<% \$bURL %>'" prints what I expect, so I'm lost as to what I need to write for the substitution. thanks, -charlie -- ------------------------------------------------------------------------ Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [EMAIL PROTECTED] voice: 603.924.6079 fax: 603.924.8668 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/