Companheiro Marcio, procurei por isso alguns dias atras e - tendo perl instalado - optei por este comando simples:
perl -pi -e "s/expr1/expr2/g;" *.php
um abraço,
Pascal
Em 28 Jul 2003 16:49:27 -0300, você escreveu:
> Companheiros;
>
> Tenho 137 scripts PHP que tem, em algum lugar do codigo, a seguinte
> linha:
>
> $conecta = mysql_connect("localhost", "usuario", "senha");
>
> Para botar pra funcionar, preciso alterar os parametros localhost,
> usuario e senha. Como fazer isso sem ter que editar arquivo por
> arquivo?????
>
> []'s
> --
> Outgoing mail is certified Windows Free.
> Checked by Debian GNU/Linux <http://www.debian.org>.
>
> "free your computer and your soul will follow..."
>
>
> --
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED] with a subject of
> "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>
--
for us official use only:
bomb kill attac al quaida bin laden war terrorism saddam hussein fidel
castro cuba iraq afghanistan revolution peace, love, happiness!
pgp19VEfnbPA8.pgp
Description: PGP signature

