So I already went through a couple of the similiar questions but I couldn't get anything to work.
I am currently trying to use this:
sed -i '/^<script/,/script>/{/^<script/!{/script>/!d}}' file.txt
Which I thought would delete everything between <script and script> but as you might have guessed it doesn't do so.
this is the code that is in the txt file:
<script type="text/javascript">
bla bla some script bla bla
</script>
There are multiple scripts at various places in the .txt and it is supposed to delete every single one of them.
scriptnodes and their contents unconditionally?-ioption. You can debug more easily and avoid messing up your file. (2) Your script looks good and removes theblaline in your example here, which is what you want, I suppose. What is yoursedversion?