Re: Looking for regex
- From: chas.owens@xxxxxxxxx (Chas. Owens)
- Date: Sat, 26 Jan 2008 14:07:25 -0500
As a side note, you may want to use the everything up to and including
the hour if your file can cover a time period longer than 24 hours:
#! /usr/bin/perl
use strict;
use warnings;
my %seen;
while (my $line = <>) {
print $line unless $seen{substr $line, 0, 13}++;
}
.
- Follow-Ups:
- Re: Looking for regex
- From: Obdulio Santana
- Re: Looking for regex
- References:
- Re: Looking for regex
- From: Chas. Owens
- Re: Looking for regex
- From: John Kufrovich
- Re: Looking for regex
- From: Chas. Owens
- Re: Looking for regex
- Prev by Date: Re: Looking for regex
- Next by Date: Re: Last line issue
- Previous by thread: Re: Looking for regex
- Next by thread: Re: Looking for regex
- Index(es):