You mean something like this?
while(<>){ chomp; if(/(ID=.+)$/){ if(++$ids{$1} > 1){ say $_, $ids{$1}; next; } } say; }
Try and get yourself a copy of the Perl Cookbook. It usually comes handy for such tasks.
In reply to Re: rename duplicate data
by monsoon
in thread rename duplicate data
by blacknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |