From: Naidu V. T. (Naidu@ohitelecom.com)
Date: Sat Feb 22 2003 - 06:07:21 EST
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@ohitelecom.com
OHI Telecommunications
Phone : +968-603606 EXT 118
Mobile : +968-9443591
Fax : +968-603608
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:08 EDT