how to replace text string in multiple files in multiple folders or directories in Linux

find ./ -type f -exec sed -i ‘s/old-string/new-string/g’ {} \;

Xin

Leave a Reply

Your email address will not be published. Required fields are marked *