Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sed - Replace first occurence of a bind-address pattern in my.cnf file
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