in reply to Re: moving files in a dir (Maildir) depending on Date
in thread moving files in a dir (Maildir) depending on Date
I changed the requirement to older than 660 days thats close enough for now. Calculating with Dates is for another day.#!/usr/bin/perl -w use strict; foreach(<*>) { if (-M $_ > 660) { use File::Copy;copy("$_","/tmp/testd +ir/") or die "Copy failed: $!";} }
|
|---|