> @result= `find . -newerct \'3 days ago\' -maxdepth 1 -exec rm \{\} \\;`;
I guess I have to ask, what is this command? -newerct? I get the following
when running this line:
find: -newerct: unknown option
Shawn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Hello Roiy,
Friday, November 30, 2001, Zysman, Roiy <[EMAIL PROTECTED]> wrote:
>> Hi All,
>> Why not make a little challenge ..
>> Lets see who can write the most lean ,mean , elegant , powerful, poetic
>> (but most important) _Shortest_, script that cleans from a directory
>> files that are at
Roiy,
I already had something similar. It actually deletes files older than 45
minutes. Just change .03124 to a "3" for 3 days.
# For each file in the folder..
while() {
# If the file is not a directory, and is older than 45 minutes,
delete it
if ((!-d $_) && (-M $_ > .03124)) {
He didn't specify perl. So I guess this works.
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 1:37 PM
To: 'Zysman, Roiy'; '[EMAIL PROTECTED]'
Subject: RE: a beginners challenge
> -Original Messa
On Wed, Nov 28, 2001 at 08:19:26PM +0200, Zysman, Roiy wrote:
> > Lets see who can write the most lean ,mean , elegant , powerful, poetic
> > (but most important) _Shortest_, script that cleans from a directory
> > files that are at least 3 days old.
perl -e 'chdir(shift @ARGV); sleep(3*86_400);
> -Original Message-
> From: Zysman, Roiy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 1:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: a beginners challenge
>
>
>
> > Hi All,
> > Why not make a little challenge ..
> > Lets see who can write the most lean ,mean , elegant ,
>
Sound like an assignment for school
Etienne
Mike Rapuano wrote:
>
> Huh, sounds fishy...
>
> Good try;)
>
> M.
>
> -Original Message-
> From: Zysman, Roiy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 1:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: a beginners challeng
TECTED]>, <[EMAIL PROTECTED]>
Date: Wed, 28 Nov 2001 13:24:44 -0500
Subject: RE: a beginners challenge
> Huh, sounds fishy...
>
> Good try;)
>
> M.
>
> -Original Message-
> From: Zysman, Roiy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2
Huh, sounds fishy...
Good try;)
M.
-Original Message-
From: Zysman, Roiy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 1:19 PM
To: '[EMAIL PROTECTED]'
Subject: a beginners challenge
> Hi All,
> Why not make a little challenge ..
> Lets see who can write the most lean