Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sed Question

Status
Not open for further replies.

unixguy303

IS-IT--Management
Feb 27, 2006
14
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top