in reply to command using system
No need to go to the system,
The -f test is important, you don't want to unlink a directory.while (</path/to/*>) { unlink $_ if -f and -M >= 30; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: command using system
by Anonymous Monk on Feb 02, 2004 at 21:56 UTC | |
by Zaxo (Archbishop) on Feb 02, 2004 at 22:05 UTC | |
by ysth (Canon) on Feb 02, 2004 at 22:02 UTC |