Created
April 14, 2015 15:12
-
-
Save ar7n/a5d55ea0a933a2889599 to your computer and use it in GitHub Desktop.
MODX porting script
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 . -name "*.php" | xargs sed -i "s#/old/path/to/site/#/new/path/to/site/#g" | |
find . -name "*.php" | xargs sed -i "s#old-domain.com#new-domain.com#g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment