File:
<img src="url1" parameters1 width="22"> some text
<img src="url2" parameters2 width="44"> another text
i want to become:
some text
another text
i need sed/awk Linux utility or such to do following:
find first occurence of <img
and then continue search down occurrence of ">
and erase (or replace by nothing) everything in between including <img
and ">
then continue like that till the end of the file to get rid of all such blocks of text.
Note that the characters between the searched phrases may be various like {};'"$%#=
I will then use that command on each file in a directory and its subdirectories.