Re: a beginners challenge

2001-11-30 Thread Shawn
> @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

Re: a beginners challenge

2001-11-30 Thread Maxim Berlin
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

RE: a beginners challenge

2001-11-29 Thread Bell, Robert J.
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)) {

RE: a beginners challenge

2001-11-28 Thread Sidharth Malhotra
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

Re: a beginners challenge

2001-11-28 Thread Adam Turoff
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);

RE: a beginners challenge

2001-11-28 Thread Bob Showalter
> -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 , >

Re: a beginners challenge

2001-11-28 Thread Etienne Marcotte
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

RE: a beginners challenge

2001-11-28 Thread Michael Eggleton
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

RE: a beginners challenge

2001-11-28 Thread Mike Rapuano
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