I have a file with some brackets:
{ This is } some text. { This } is some other text.
The brackets always come in pairs, and are occasionally nested, but never appear across multiple lines, such as here:
{ This is } some text. { This
is some other text. }
I want to search for some errors, in which a bracket is missing. How can I locate any lines that are missing a matching bracket?
With
awk: