Skip to content

Instantly share code, notes, and snippets.

@danbucholtz
Created May 14, 2015 21:12
Show Gist options
  • Save danbucholtz/901f88b081783dd1f001 to your computer and use it in GitHub Desktop.
Save danbucholtz/901f88b081783dd1f001 to your computer and use it in GitHub Desktop.
Recursive find and replace of a path using Sed on a Mac
find . -type f -name '*.js' -print0 | xargs -0 sed -i -e 's|path/to/replace|new/path/of/doom|g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment