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<' | cat -e
returns
$
hello>$
world>$
instead of
$
<hello>$
<world>$
What's wrong?