How do I replace a string between two delimiters?
Some of the answers I found are close, but I think my need is a little more complex.
I.e. smb.conf
contains a blank line between shares. I want to target the share I want to update. The first delimiter is "[sharename]" and the end delimiter can be a blank line.
I want to find and replace "writable = yes" with "writable = no" which may be inexactly formatted because of white space, but must occur between my two delimiters.