Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Aging Script

by Seema (Novice)
on Aug 08, 2001 at 22:11 UTC ( #103142=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Cutoff_date = Todays_date - 31
    For each file
    ...
        delete file
      End If statement
    End For each loop
    
  2. or download this
    #!/sbin/sh
    touch -t `date +"%m%d%H%M.%S"` timefile
    sleep 5  #sleep 5 seconds
    touch timefile2
    echo `find ./ -type f -newer timefile`
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-03-31 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (75 votes). Check out past polls.

    Notices?