Created
October 12, 2018 09:06
-
-
Save Semo/1fd5eb740061edf58d1bbfba20975ee0 to your computer and use it in GitHub Desktop.
sed - Replace first occurence of a bind-address pattern in my.cnf file
This file contains hidden or 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
sed -i "0,/.*bind-address.*/s//bind-address = 0.0.0.0/" my.cnf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment