The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 12-06-2007
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline
Disorganised User
 

Join Date: Nov 2007
Location: New Zealand
Posts: 742
Post

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
Reply With Quote