Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: How do I find and delete files based on age?

by 0xbeef (Hermit)
on Feb 28, 2007 at 08:41 UTC ( [id://602457]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cd /targetdir/targetsubdir
    rm -fr *
    
  2. or download this
    > cd $TARGETDIR && rm -fr ./targetsubdir
    or
    > test -d $TARGETDIR && find . -name 'DATE_*' -type f -mtime +14 -exec
    + rm -fr {} \;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found