The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Delete files older than 3 months.(read date from the name of the file)
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Delete files older than 3 months.(read date from the name of the file)
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
07-15-2008
chaseeem
Registered User
Join Date: Jan 2008
Posts: 4
If the date on the file name is the same as the last modified time you may use.
find . -name '*.log' -mtime +90 -exec rm {} \;
-rw-r--r-- 1 owner group 10322
Jul 14
23:47 log.
071408
chaseeem
View Public Profile
Find all posts by chaseeem
Find chaseeem's past nominations received
Find chaseeem's present nominations given