- or download this
local $/ = undef;
open(LOG, 'log_file') or die("couldn't open file");
...
$file_counts{$file}[1] =()= $log =~ /<regexp2>/gi;
}
- or download this
while(<LOG>){
if(/GET\s.*\/(\S+)\.pdf\s/i and exists $file_counts{$1}){
$file_counts{$1}[0]++;
}
}
- or download this
GET /folder1/folder2/file.pdf HTTP ..etc