Created
April 15, 2020 07:44
-
-
Save kasperhartwich/5ce4b0fce362031257949f9017b024cb to your computer and use it in GitHub Desktop.
Command to replace text in all f.ex. php files in directory
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
# OSX | |
find . -name '*.php' -print0 | xargs -0 sed -i "" "s/TextToReplace/NewText/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment