On Wednesday 07 November 2007 09:43, Charlie Farinella wrote:
> Hi,

Hello,

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

Try this:

perl -wi -pe's/testtext/\047<% \$bURL %>\047/g' test.html



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to