Created
May 14, 2015 21:12
-
-
Save danbucholtz/901f88b081783dd1f001 to your computer and use it in GitHub Desktop.
Recursive find and replace of a path using Sed on a Mac
This file contains 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 . -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