X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fgrepdbg;h=250a898b5701aed2647c9e1de1822909cb48207e;hb=118cbdbcf7e06d022a3030670c0e70b05bd8c5b3;hp=c44fc92b85c3a08f2565ef95e73f91a82886a1ca;hpb=69e2746d46e5f6095530e76297aeddc1f359d4fb;p=spider.git diff --git a/perl/grepdbg b/perl/grepdbg index c44fc92b..250a898b 100755 --- a/perl/grepdbg +++ b/perl/grepdbg @@ -43,7 +43,7 @@ for my $arg (@ARGV) { last; } } -die "usage: dispdbg [[-nnn] ..] \n" unless $string; +die "usage: grepdbg [[-nnn] ..] \n" unless $string; push @list, "0" unless @list; for my $entry (@list) { @@ -54,7 +54,7 @@ for my $entry (@list) { while (<$fh>) { my $line = $_; chomp $line; - if ($line =~ m{\Q$string}io) { + if ($line =~ m{$string}io) { my @line = split '\^', $line; my $t = shift @line; print atime($t), ' ', join('^', @line), "\n";