shift @prev while @prev > $nolines;
if ($line =~ m{$string}io) {
for (@prev) {
- my @line = split '\^';
- my $t = shift @line;
- print atime($t), ' ', join('^', @line), "\n";
+ s/([\x00-\x1f\x7f-\xff])/sprintf("\\x%02X", ord($1))/eg;
+ my ($t, $l) = split /\^/, $line, 2;
+ print atime($t), ' ', $l, "\n";
}
@prev = ();
}