[CentOS] replace

Mad Unix madunix at gmail.com
Fri Oct 24 18:56:45 UTC 2008


i need your feedback about this command, it should find a string in
multiple html files in a directory and replace it with a different
string...

find /dir -name "*.html" -exec sed -i 's/"old"/"new"/g' {} \;

Thx.


More information about the CentOS mailing list