$ cat troca.sh
#!/bin/bash
for ARQUIVO in *.txt
do
        sed -e 's/telefone = 123/telefone = abc/' $ARQUIVO > temp
        cp temp $ARQUIVO
        rm temp
done
$ grep telefone *txt
agenda1.txt:telefone = 123
agenda2.txt:telefone = 123
agenda3.txt:telefone = 321
$ ./troca.sh
$ grep telefone *txt
agenda1.txt:telefone = abc
agenda2.txt:telefone = abc
agenda3.txt:telefone = 321

---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a