Skip to content

Instantly share code, notes, and snippets.

@ionatan-israel
Last active April 3, 2016 19:12
Show Gist options
  • Save ionatan-israel/ebc81156634fd3b634cf to your computer and use it in GitHub Desktop.
Save ionatan-israel/ebc81156634fd3b634cf to your computer and use it in GitHub Desktop.
This command will do it (tested on both Mac OS X Lion and Kubuntu Linux).
# Recursively find and replace in files
find . -type f -name '*.js' ! -path "./node_modules/*" -exec sed -i '' s/'old_string'/'new_string'/ {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment