Skip to content

Instantly share code, notes, and snippets.

@kasperhartwich
Created April 15, 2020 07:44
Show Gist options
  • Save kasperhartwich/5ce4b0fce362031257949f9017b024cb to your computer and use it in GitHub Desktop.
Save kasperhartwich/5ce4b0fce362031257949f9017b024cb to your computer and use it in GitHub Desktop.
Command to replace text in all f.ex. php files in directory
# 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