The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
How to delete files with certain ext?
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
How to delete files with certain ext?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
12-06-2007
Smiling Dragon
Disorganised User
Join Date: Nov 2007
Location: New Zealand
Posts: 742
Perform appropriate calulation to determine how many days ago 29th of november was, assign to $days.
find /dding/ting/tong/unixyang/output/ -name "*.html" -mtime $days -exec rm {} \;
To test, omit the "-exec rm {} \;" part of the above command
Smiling Dragon
View Public Profile
Find all posts by Smiling Dragon