unixguy303
IS-IT--Management
How can I take the contents of an unformatted input file (no CR/LF) that might look like this using sed:
<a>x</a><end><c>d</c><f>e</f><end><a>g</a><b>h</b><end><b>h</b><end>
…and make it look something like this, with "newline" inserted after all <end> tags, in a new output file:
<a>x</a><end>
<c>d</c><f>e</f><end>
<a>g</a><b>h</b><end>
<b>h</b><end>
Thanks
Brandt
<a>x</a><end><c>d</c><f>e</f><end><a>g</a><b>h</b><end><b>h</b><end>
…and make it look something like this, with "newline" inserted after all <end> tags, in a new output file:
<a>x</a><end>
<c>d</c><f>e</f><end>
<a>g</a><b>h</b><end>
<b>h</b><end>
Thanks
Brandt