This is the command I'm using on a standard web page I wget
from a web site.
tr '<' '\n<' < index.html
however it giving me newlines, but not adding the left broket in again. e.g.
echo "<hello><world>" | tr '<' '\n<'
returns
(blank line which is fine)
hello>
world>
instead of
(blank line or not)
<hello>
<world>
What's wrong?