This is an old revision of the document!


Comment chercher et remplacer dans plusieurs fichiers avec sed

Pour remplacer "echo htmlentities" par "highlight_string" dans tous les fichiers php du répertoire courant tapez ceci :

sed -i 's/echo htmlentities/highlight_string/g' *.php

Alternative pour un chercher remplacer récursif :

find . -name "*.php" -exec sed -i 's/echo htmlentities/highlight_string/g' {} \;

Discussion

Enter your comment
 
 
 

Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki