Skip to content

Instantly share code, notes, and snippets.

@Semo
Created October 12, 2018 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Semo/1fd5eb740061edf58d1bbfba20975ee0 to your computer and use it in GitHub Desktop.
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
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