Created
March 15, 2017 21:00
-
-
Save bradfordpythian/c3c78baa167645679482ab26ed8c806f to your computer and use it in GitHub Desktop.
Generate CHANGE MASTER from master.info
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
BEGIN { | |
print "CHANGE MASTER TO" | |
} | |
{ | |
if (NR==4) { | |
print " MASTER_HOST='"$0"'," | |
} | |
if (NR==5) { | |
print " MASTER_USER='"$0"'," | |
} | |
if (NR==6) { | |
print " MASTER_PASSWORD='"$0"'" | |
} | |
} | |
END{ | |
print ";" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment