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
