Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: del files that is 7 days or older

by oakley (Scribe)
on Feb 15, 2001 at 00:23 UTC ( #58441=note: print w/replies, xml ) Need Help??


in reply to del files that is 7 days or older

Since it appears you are using a *nix system, why not try:
find DIRECTORY_HERE -mtime +7 | xargs rm -f
This would work great from either command line or a cronjob

- oakley
Embracing insanity - one twitch at a time >:)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2023-02-05 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (32 votes). Check out past polls.

    Notices?