原文:Using sed to replace a pattern between curly braces where line immediately before the opening curly brace has a known word
I would like to change: inlet { type patch; ... } outlet { type patch; } to inlet { type wall; ... } outlet { type patch; } As a first attempt to achieve ...