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); unlink <*>;' ~
:-)
On Wed, Nov 28, 2001 at 01:36:44PM -0500, Bob Showalter wrote:
> $ find /dir -mtime +3 -exec rm {} \;
This is the canonical solution. Your problem can be solved with perl,
but perl isn't the best tool to solve your problem.
Z.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]