Skip to content

Instantly share code, notes, and snippets.

@bjarneo
Created February 3, 2015 12:24
Show Gist options
  • Save bjarneo/10fddaed0e18eee9dcb3 to your computer and use it in GitHub Desktop.
Save bjarneo/10fddaed0e18eee9dcb3 to your computer and use it in GitHub Desktop.
Recursive string replacement
find . -iname '*php' | xargs grep 'mysql' -sl | while read x; do echo $x; sed -i 's/mysql/mysqli/' $x; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment