I need to recognize the following pattern via sed:
Fuel Side {
dirichlet {
t = 299
V = 0.6
And replace the value for t and v. I tried sed /Fuel Side { dirichlet { t=/s/valuehere/
but I know that I'm going in the wrong direction because I don't really know how to recognize a complicated pattern like this.
I found something like this 's/(pattern)[^=]*$/foo/'
with extended regular expressions but I couldn't find any explanation for [^=]*$/
.