I have lots of text in a file. I want to delete all text that are between symbols === and <!!!>. E.g.
Text ===some comments<!!!> lala ===aaa<!!!>" should be Text lala after running the command. I tried sed -i -E "s/(===(.*)<!!!>)//" file, but it doesn't work.
Edit:
Text ===
some commenkjghkb
ufjhbgdfxjhg
srtdfts
</!!!>
lala ===aaa
</!!!>"```
should be Text lala
<!!!>in one and</!!!in the other. Make up your mind. Also do you mean that those spaces, newlines and"```have to be removed?