From 4854a7c6db0072ba59bc8b6d2454b7bc34d23792 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Mon, 10 Sep 2012 03:48:09 -0500 Subject: Search logs in reverse chronological order. Within a given log file, matches are still displayed in chronological order. --- dat/log/crawl-dev.log.concat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dat/log/crawl-dev.log.concat b/dat/log/crawl-dev.log.concat index ecfc76b..c6c242c 100755 --- a/dat/log/crawl-dev.log.concat +++ b/dat/log/crawl-dev.log.concat @@ -29,7 +29,7 @@ if ($@) { } my $matching_files=0; -FILE: for my $logf (<*.log>) { +FILE: for my $logf (reverse <*.log>) { my $f = new IO::File $logf, "<:encoding(UTF-8)"; unless (defined $f) { print "skipping $logf: $!\n"; -- cgit v1.2.3