The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Delete Some Old files from Particular Directory
.
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 Some Old files from Particular Directory
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
12-11-2006
cskumar
Registered User
Join Date: Oct 2005
Posts: 67
try this
find /path -type d -ctime +5 -name '[0-9]{8}*' -print |xargs rm -i
give the full path in the place of /path .
this will take the creation date and time of the folders.
cskumar
View Public Profile
Find all posts by cskumar
Find cskumar's past nominations received
Find cskumar's present nominations given