back
toc
next
REs are greedy
eliminating HTML-tags from a file
bash$ sed -e 's/<.*>//g' text.html
If the file contains a line like:
This <b> is </b> a <i>example</i>.
,
then the result will be:
This.
Solution:
bash$ sed -e 's/<[^>]*>//g' text.html