I know that similar questions have been asked on this forum but, as far as I can see, none of them addressed the problem of patterns being in different lines. Namely, given a text file
( one ) ( two ) (
three
)
four
How may I delete everything that is between each '(' and ')' pair, even when the elements of the pair are on different lines? The desired result is
() () ()
four
-0777
actually required? It's working without that flag for me. – Jay Taylor Mar 08 '18 at 20:24< <(echo 'something...
)` then it works without -0777 flag, but when passing to stdin with a heredoc the flag is needed for it to work. Thanks Glenn. – Jay Taylor Mar 08 '18 at 21:31echo -e ...
– Jay Taylor Mar 09 '18 at 00:39