replace matched string in multiple files with find and sed command line

if you guys want to replace matched string in multiple files in linux you can use find with sed command as below: find /usr/share/xyz/html/ -type f -name '*.html' -exec sed -i 's/welcome/WELCOME/g' {} \; explanation find /path/ -type [f,d] -name 'filename' -exec command {} \; sed -i 's/pattern/replace_string/g' filename ...

May 29, 2015 · 1 min · longka