projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the regexes for 19/21 take out 16/17 as well
[spider.git]
/
perl
/
grepdbg
diff --git
a/perl/grepdbg
b/perl/grepdbg
index 35c9a748ba9d4da025e339698d3eb2921e17f00c..467c785330fe4db733d2689f37210bfc1a0674a6 100755
(executable)
--- a/
perl/grepdbg
+++ b/
perl/grepdbg
@@
-62,9
+62,9
@@
for my $entry (@list) {
shift @prev while @prev > $nolines;
if ($line =~ m{$string}io) {
for (@prev) {
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 = ();
}
}
@prev = ();
}