projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added hex decodes for 0-1f 7f-ff in watchdbg and grepdbg
[spider.git]
/
perl
/
grepdbg
diff --git
a/perl/grepdbg
b/perl/grepdbg
index 35c9a748ba9d4da025e339698d3eb2921e17f00c..5b95c6338565327e61b04d312cb9d58618eecd60 100755
(executable)
--- a/
perl/grepdbg
+++ b/
perl/grepdbg
@@
-62,6
+62,7
@@
for my $entry (@list) {
shift @prev while @prev > $nolines;
if ($line =~ m{$string}io) {
for (@prev) {
+ $line =~ s/([\x00-\x1f\x7f-\xff])/sprintf("\\x%02X", ord($1))/eg;
my @line = split '\^';
my $t = shift @line;
print atime($t), ' ', join('^', @line), "\n";