Change a string recursively in all directories

Make sure you’re using GNU find and GNU sed.

find . -type f -exec sed -i 's/OLDSTRING/NEWSTRING/g' {} +

Tags

Related Posts

Share This