[ABE.pm] Re: regex problem?

Faber Fedor faber at linuxnj.com
Wed Mar 23 18:20:31 PST 2005


Because I forgot the '-p', that's why.

On 23/03/05 21:02 -0500, Faber Fedor wrote:
> I have a file (test.php) that contains lines like this:
> 
>     <? include("content/navstripe.html"); ?>
> 
> I want to change those line to look like this:
> 
>     <?php include("content/navstripe.html"); ?>
> 
> So I do this (and several variations):
> 
>     perl -i.bak -e 's/\<\? /\<\?php /g' test.php
> 
> But nothing changes and no test.php.bak file is created.  Why?
> 
> -- 
>  
> Regards,
>  
> Faber                     
> 
> Linux New Jersey: Open Source Solutions for New Jersey
> http://www.linuxnj.com
> 
> 
> 
> _______________________________________________
> ABE-pm mailing list
> ABE-pm at pm.org
> http://mail.pm.org/mailman/listinfo/abe-pm

-- 
 
Regards,
 
Faber                     

Linux New Jersey: Open Source Solutions for New Jersey
http://www.linuxnj.com





More information about the ABE-pm mailing list