Last active
August 29, 2015 14:18
-
-
Save annalinneajohansson/10d4c648f6afabd3c88e to your computer and use it in GitHub Desktop.
Search and replace string apple with orange in php files recursively in the directory you're in. From https://glassonionblog.wordpress.com/2013/02/04/search-n-replace-text-in-multiple-files-recursively/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -name "*.php" -print | xargs sed -i 's/apple/orange/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment