John W. Krahn wrote:
> Igor Sutton Lopes wrote:
>>
>>sub move_file {
>>
>># using -M is better than doing the calculation to obtain the
>>difference
>># from now and three days ago.
>>return unless -M $_ < 3;
>
> Why not just use the modified( '>3' ) rule?
Ok, modified( '>3' ) won't
On 4/10/07, John W. Krahn <[EMAIL PROTECTED]> wrote:
Igor Sutton Lopes wrote:
snip
> return unless -M $_ < 3;
Why not just use the modified( '>3' ) rule?
snip
There doesn't seem to be a performance issue either way:
Raterule explict
rule450/s -- -0%
explict 450/s
Igor Sutton Lopes wrote:
> Sorry! I was testing and sent the last version -TextMate integrated
> with Mail.app- :-(
>
> On Apr 10, 2007, at 4:40 PM, John W. Krahn wrote:
>
>> [...]
>> Did you test this? Where do you distinguish between files "older
>> than 3 days"
>> and other files? Where is
Sorry! I was testing and sent the last version -TextMate integrated
with Mail.app- :-(
On Apr 10, 2007, at 4:40 PM, John W. Krahn wrote:
[...]
Did you test this? Where do you distinguish between files "older
than 3 days"
and other files? Where is "name('trunk')" specified by the OP?
Th
Igor Sutton Lopes wrote:
>
> On Apr 10, 2007, at 3:27 PM, John W. Krahn wrote:
>
>> Craig Schneider wrote:
>>
>>> How could I exec a 'dir' command on a dos system and put the output in
>>> an array, sort by date and the files that are older than 3 days be
>>> moved into a folder called 'history
Hi,
On Apr 10, 2007, at 3:27 PM, John W. Krahn wrote:
Craig Schneider wrote:
Hi Guys
Hello,
How could I exec a 'dir' command on a dos system and put the
output in
an array, sort by date and the files that are older than 3 days be
moved
into a folder called 'history'
# open the curre
Craig Schneider wrote:
> Hi Guys
Hello,
> How could I exec a 'dir' command on a dos system and put the output in
> an array, sort by date and the files that are older than 3 days be moved
> into a folder called 'history'
# open the current directory
opendir my $dh, '.' or die "Cannot open '.' $
Hi,
If you wish to select all files that are directly under given directory you can
implement the following (in pure perl fashion):
sub numerically { $b <=> $a;}
$DIR = ;
$THRESHOLD_IN_DAYS = 3;
my %time_to_file;
my $currTime = time();
#Store all file in hash with time as key.
for each my $
On Tue, 2007-04-10 at 13:19 +0200, Craig Schneider wrote:
> Hi Guys
>
> How could I exec a 'dir' command on a dos system and put the output in
> an array, sort by date and the files that are older than 3 days be moved
> into a folder called 'history'
Look at module File::Find this should be abl
Don't know much about dos.
But under unix you may got the files older than 3 days by this way,
chdir '/the/path';
@files = grep { time - (stat)[9] > 24*60*60*3 } glob "*";
2007/4/10, Craig Schneider <[EMAIL PROTECTED]>:
Hi Guys
How could I exec a 'dir' command on a dos system and put the out
10 matches
Mail list logo