Quote:
Originally posted by Hypo
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
?
|
In theory that should work. I'd test it on a domain or a subfolder of a domain first.
I just tested viewing a page on my server, and the atime (access time) got modified, which was the only thing I wasn't 100% sure of. Give it a try
