chiark / gitweb /
Reverse the contents of log files
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 15 Apr 2014 15:53:15 +0000 (16:53 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 15 Apr 2014 16:51:28 +0000 (17:51 +0100)
commit66ffdf9bce6ef1b3f5b4252eedb01538f114ba8e
tree2cb62b4448180c7eecbb7384db9e6c3879db8b55
parentfea9ba5fbcb59686380c2b6c590a4b21b54af561
Reverse the contents of log files

Use "tac" to reverse files, meaning the logs are now output neatly in
reverse-chronological order.

The existing code tried to read everything in $webstump_home/.. ; we
now only try and open errs files; this involves changing the guard
condition to 0 from undef (since forwards * undef isn't undef).
webstump/scripts/html_output.pl