<?xml version="1.0" encoding="windows-1252"?>
<node id="206278" title="Re: A new question from the front line" created="2002-10-18 07:44:27" updated="2005-07-27 05:19:15">
<type id="11">
note</type>
<author id="34691">
Chmrr</author>
<data>
<field name="doctext">
&lt;p&gt;I'd probably do it more or less the same way you did; but for perversity's sake, here's another possibility:&lt;/p&gt;
&lt;code&gt;perl -ple 'BEGIN{$/="energy";&lt;&gt;;$.--}/.+/;$_=$..$&amp;' filename&lt;/code&gt;
&lt;p&gt;perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&amp;V"+@( NO CARRIER'&lt;/p&gt;</field>
<field name="root_node">
206239</field>
<field name="parent_node">
206239</field>
</data>
</node>
