J
Jorge Reyes
Hi everyone,
I have this issue which is killing me, this is the scenario
if i make ls -l i get this:
-rw-r--r-- 1 netrac netrac 2928 jul 8 18:47 file1.pl
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:07 file2.pl
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:10 file3.pl
now what i need is only the files were accessed >= 19:00 i.e.
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:07 file2.pl
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:10 file3.pl
i found this example which create a rule to find only files (and not
directories or other things) that have been accessed at least 14 days
ago
use File::Find::Rule;
my $path = "/data";
my @results = File::Find::Rule->file->ctime('>14')->in($path);
foreach my $i (@results) {
print "$i\n";
}
Question is, instead 14 days ago, a specific time i.e. >= current
system date ????
Thanks in advanced
I have this issue which is killing me, this is the scenario
if i make ls -l i get this:
-rw-r--r-- 1 netrac netrac 2928 jul 8 18:47 file1.pl
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:07 file2.pl
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:10 file3.pl
now what i need is only the files were accessed >= 19:00 i.e.
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:07 file2.pl
-rw-r--r-- 1 netrac netrac 2928 jul 8 19:10 file3.pl
i found this example which create a rule to find only files (and not
directories or other things) that have been accessed at least 14 days
ago
use File::Find::Rule;
my $path = "/data";
my @results = File::Find::Rule->file->ctime('>14')->in($path);
foreach my $i (@results) {
print "$i\n";
}
Question is, instead 14 days ago, a specific time i.e. >= current
system date ????
Thanks in advanced