The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-21-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
How about using the find command ...

find /feeds/\*.dir -name \*$year$month$day\* type f -xdev -mtime +8 -exec rm -rf {} \;

find /first_value.dir/Download/validated.dir -name \*$year$month$day\* type f -xdev -mtime +8 -exec rm -rf {} \;


Or similar ?