in reply to Re^4: Grep logs by start date and end date in different directories
in thread Grep logs by start date and end date in different directories
This particular line:sub get_files { my (@dirs) = @_; my $level = shift // 3; # level to dig into my @files = File::Find::Rule->file() ->name( '*.bz2' ) #can insert regex too ->maxdepth($level) ->in(@dirs); return @files; }
When I change it to my own log file path, it will replace the <date>/<filename.bz2> which will returns nothing in result. How can I specify my own log path?my (@dirs) = @_;
|
|---|