Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

(dkubb) Re: (2) del files that is 7 days or older

by dkubb (Deacon)
on Feb 15, 2001 at 06:14 UTC ( #58551=note: print w/replies, xml ) Need Help??


in reply to del files that is 7 days or older

This will delete any files in the current directory that are 7 or more days old:

perl -e 'unlink grep { -M >= 7 } <*>'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2023-02-05 20:52 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?