Example:
This is {
the multiline
text file }
that wants
{ to be
changed
} anyway.
Should become:
This is
that wants
anyway.
I have found some similar threads in the forum, but they don't seem to work with multi-line curly brackets.
If possible, I would prefer some one-line method, like solutions based on grep, sed, awk... etc.
EDIT: Solutions seem to be OK, but I have noticed that my original files include curly brackets nesting. So I am opening a new question. Thanks you everybody: How can I delete all text between nested curly brackets in a multiline text file?