periodic: Fix periodic reports when log files are not compressed.
The modern zcat(1) is capable of handling compressed and uncompressed
text files, so we can simply use zcat command.
PR: 253168
Differential D43357
Fix periodic reports when log files are not compressed. nyan on Jan 8 2024, 11:02 AM. Authored by Tags None Referenced Files
Subscribers
Details periodic: Fix periodic reports when log files are not compressed. The modern zcat(1) is capable of handling compressed and uncompressed PR: 253168
Diff Detail
Event TimelineComment Actions This is fine... Comment Actions I don't think these whole case..esac blocks are needed: modern enough zcat(1) is capable of handling compressed and uncompressed text files, so you can simply do: do zcat -f $f done and done with it... This is already implemented in zcat(1) :) Comment Actions LGTM. Do we want to extract that catmsgs out to somewhere? (Not necessarily as part of this commit) |