in reply to Removing duplicate entries in a file which has a time stamp on each line

(A very fast solution...)
my %see; open my $file, "<textfile.txt"; while ( my $line = <$file> ) { my ($date, $rest) = split(" ",$line,2); next if $see{$rest}++; print "$date $rest"; } close $file;
  • Comment on Re: Removing duplicate entries in a file which has a time stamp on each line
  • Download Code