> I have two web sites with about 300 htm and php files. I wish 
> to make a change so tht the database connect string in all of 
> these files is changed for mysql_pconnect to mysql_connect. 
> Can perl do this and if so can anyone show me how? 
> 
> Ideally I would like to feed a script or command line with a 
> list of files using ls .

perl -pi -e "s/mysql_pconnect/mysql_connect/" list.htm of.php files.txt

You may even try `cat ./public_html` to get the list.

One thing you might want to try is replace the php files with perl ;p

HTH
DMuey

> 
> Regards
> 
> Peter Goggin
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to