On 20-Jul-2001 Alain Codina wrote:
> find HTML/ -name '*html' | grep -w 'index.html'
> j ai trouve 150 pages web dans mon repertoire HTML/ contenant le mot 
> complet index.html
> mais je veux modifier toutes les occurences
> index.html 
> en
> departdusite.html 

Utilise perl, �a ira 100 fois mieux ;-)
Voici la commande pour chercher/remplacer du texte :
perl -i -wpe 's/index\.html/departdusite\.html/g' *.html

Attention : fais une sauvegarde avant au cas o� !

-- 
http://www.calvo-france.com/linuxtips.php (29/06/01)
________________________________________________
A  r  n  a  u  d    C  a  l  v  o       47�43'60N  0�31'0W

Répondre à