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~~
{{tag>article computing linux sed find shell}}