for file in `find ${base_dir}` -name "*.log" -atime ${day_old}
do
    rm -fr ${file}
done 


;)

\T,
 
--  Any fool can write code that a computer can understand.  
Good programmers write code that humans can understand.                         
                           
Martin Fowler  
 
T. : +32 (0)2 742 05 94 
M. : +32 (0)497 44 68 12 
@  : [EMAIL PROTECTED] 
Do you skype too ... (callto://tsmets/) ?

----- Original Message ----
From: Muhammad Adnan Qureshi <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, June 9, 2006 2:29:20 PM
Subject: Deleting x-days old log files.

Hi, 

    I was wondering If I can delete x-days old log files automatically ?
    Please help :-)

-Regards
Muhammad Adnan Qureshi





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to