Many Thanks to Kevin Fleming,Phil Baldwin,Premjit Nair and Michael James Bradford.
Original Question : > I am looking for a script which can delete files which are 7 days
older with regard to the current system time.
Ans: # accesses more than 7 days ago find /some_path -atime +7 -exec rm {} \;
# created more than 7 dyas ago find /some_path -ctime +7 -exec rm {} \;
Regards,
>
Naidu V.T
Senior Support Engineer
naidu_at_ohitelecom.com
OHI Telecommunications
Phone : +968-603606 EXT 118
Mobile : +968-9443591
Fax : +968-603608
Received on Sat Feb 22 2003 - 11:11:09 NZDT