Created
February 18, 2016 16:12
-
-
Save Strae/428e2c2928c6a3de1c4e to your computer and use it in GitHub Desktop.
Commands to change the domain of a wordpress site acting on the database.
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
# Remember to escape the dots!! example.com become example\.com | |
# db.sql the original wordpress db | |
# dump_02.sql the final one | |
# cmon its kinda easy, this is just a reminder. | |
sed 's|http://OLD|http://NEW|g' db.sql > dump_01.sql | |
sed 's|OLD|NEW|g' dump_01.sql > dump_02.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment