I am trying to get rid of some ending tags but I run into some problems.
Ex.
How are you?</EndTag><Begin>It is fine.</Begin><New> Just about
I am trying to get rid of the ending tags, starts with </ and ending with >. (which is </EndTag> and </Begin>)
I tried the following
sed 's/<\/.*>//g' file
It give me the following result which I did not want.
How are you? Just about.
It eliminated everything between you? and Just. There has to be a way to eliminate up to the first >
Second:
Same problem but split over two line.
How are you?</EndTag><Begin>It is fine.</Beg
in><New> Just about the same
Does anyone have an catchall sed command to eliminate everything from </... until it reaches the first > even though it expands mulitple lines.
Thank you.