Skip to content
Snippets Groups Projects
Commit 09fd3b49 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Match file times occurring in the morning.

parent 3fef839f
No related branches found
No related tags found
No related merge requests found
......@@ -60,19 +60,19 @@ elsif ($ARGV[0] eq "postprocess")
# or may be unsupported on some platforms (e.g. Windows)
my $newfile = $logfile . ".new";
open(OUT, ">$newfile") || die "$!";
open(IN, "<$logfile") || die "$!";
open(OUT, ">$newfile") || die "$!";
while (<IN>) {
s/^(.)(..).(..).(..).(.{4}?).{6}?.{6}?(.{12}?)/\1\2?\3?\4?\5 U U\6/;
if ($1 eq "d") {
# Erase inodes, size, mode, time fields for directories
s/^.{14}?(.{12}?).{11}? ... .\d \d\d:\d\d/d????????? N\1 N ??? N NN:NN/;
s/^.{14}?(.{12}?).{11}? ... .\d .\d:\d\d/d????????? N\1 N ??? N NN:NN/;
}
print OUT $_;
}
close(IN);
close(OUT);
close(IN);
unlink $logfile;
rename $newfile, $logfile;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment