View Single Post
Old 06-29-2002, 05:19 PM  
vending_machine
Confirmed User
 
Join Date: Jun 2002
Location: Seattle
Posts: 1,066
Quote:
Originally posted by Hypo


for file in $( find /usr/home/hypo/websites -name "*.html" -atime "+30" ); echo rm $file; do rm $file; done
Looks like you might have already done all this, but if you want to also see which files are deleted do this (you were close):

for file in $( find /usr/home/hypo/websites -name "*.html" -atime "+30" ); do echo $file; rm $file; done

To save the output to a file as it might be a lot of info add this to the end of the line: > remove.output

Good luck
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote