From: "Naidu V. T." <Naidu@ohitelecom.com>
Subject: SUMMARY: Deleting files.
Date: Sat, 22 Feb 2003 15:07:21 +0400 [thread overview]
Message-ID: <9CC0EAD054A9324E960A5868EDCB7E66F9D687@EXSERVER01.ohi_net.com> (raw)
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
reply other threads:[~2003-02-22 11:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox