- or download this
push @lines, grep { /Running|Dump|FromCB|Update/o && filterLog($_) } <
+$fh>;
- or download this
return unless ! exists $opts{'start-time'} || $opts{'start-time'} lt $
+1;
return unless ! exists $opts{'stop-time'} || $opts{'stop-time'} gt $1;
- or download this
return if exists $opts{'start-time'} and $opts{'start-time'} ge $1;
return if exists $opts{'stop-time'} and $opts{'stop-time'} le $1;
- or download this
sub mergeLogs() {
sub filterLog() {
- or download this
sub filterLog() {
s/ {2,}/ /g;
...
return pack 'da*', ( $2*60 + $3 )*60 + "$4.$5" ), $_;
}
- or download this
grep { /Running|Dump|FromCB|Update/o && ( $_ = filterLog($_) ) } <$fh>
+;
- or download this
@lines = map{
substr $_, 8
} sort @lines;
- or download this
s/ {2,}/ /g;
s/^((?:\S+ ){3}).+?\[?I\]?:/$1/;
s/ ?: / /g;
s/ ACK (\w) / $1 ACK /;