my ($line, %hash); while ($line = <FILE>) { if ($line =~ /(your_sequence_format)/) { if (! exists($hash{$1})) { $hash{$1} = $line; } } } # now you can print the hash back to your file
In reply to Re: finding and deleting repeated lines in a file
by hotshot
in thread finding and deleting repeated lines in a file
by Becky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |