Change a string recursively in all directories November 13, 2014 RLByrd Snippets, bash, bash snippets, Misc Tools Tags: sed, find, shell Make sure you’re using GNU find and GNU sed. find . -type f -exec sed -i 's/OLDSTRING/NEWSTRING/g' {} + Related posts: Convert charset in all schemas within an instance Getting around “argument list too long” Automate with expect Redirect all shell output Check TCP connections and their remote origins