<?xml version="1.0" encoding="windows-1252"?>
<node id="977747" title="Re: rename duplicate data" created="2012-06-21 22:06:50" updated="2012-06-21 22:06:50">
<type id="11">
note</type>
<author id="977180">
monsoon</author>
<data>
<field name="doctext">
&lt;p&gt;You mean something like this?&lt;/p&gt;
&lt;code&gt;
while(&lt;&gt;){
	chomp;
	if(/(ID=.+)$/){
		if(++$ids{$1} &gt; 1){ 
			say $_, $ids{$1};
			next;
		}		
	}
	say;	
}
&lt;/code&gt;
&lt;p&gt;Try and get yourself a copy of the Perl Cookbook. It usually comes handy for such tasks.&lt;/p&gt;</field>
<field name="root_node">
977715</field>
<field name="parent_node">
977715</field>
</data>
</node>
