View Single Post
Old 06-29-2002, 04:05 PM  
Hypo
So Fucking Banned
 
Join Date: Feb 2001
Posts: 1,104
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

?
Hypo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote