in reply to Re^11: Log Parsing
in thread Log Parsing
Just skip over the other ids
see chomp# chop $reqid; # use chomp chomp $reqid;
pojwhile (<IN>) { chomp; next unless /Task:id=(\d+)/; my $taskid = $1; next unless ($taskid eq $reqid); ## <-- add my (undef,$timestamp,undef) = split /\s+/,$_,3; ..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: Log Parsing
by piyushmnnit06 (Novice) on May 11, 2017 at 12:49 UTC | |
by poj (Abbot) on May 11, 2017 at 13:37 UTC | |
by piyushmnnit06 (Novice) on May 12, 2017 at 10:54 UTC | |
by piyushmnnit06 (Novice) on May 15, 2017 at 08:44 UTC | |
by marto (Cardinal) on May 15, 2017 at 08:51 UTC | |
by piyushmnnit06 (Novice) on May 16, 2017 at 07:09 UTC |