Quote:
Originally posted by vending_machine
for file in $( find /usr/home/hypo/websites -name "*.html" -atime "+30" ); do rm $file; done
|
So I just login via ssh, type that line in, and it does what i want it to do? That simple??
Will it search through all the subfolders?
I can test it on a couple of domains before I unleash it on the whole server. So that would be like -
for file in $( find /usr/home/hypo/html/domain1.com -name "*.html" -atime "+30" ); do rm $file; done
?