View Single Post
Old 06-29-2002, 04:23 PM  
Hypo
So Fucking Banned
 
Join Date: Feb 2001
Posts: 1,104
When I use this -

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

it does not show the names of files it is deleting - is it possible to have that?

Replacing it with echo does that, but I would like it to both echo and delete. I suppose this should do it, but I dont want to riskl it without confirmation -

for file in $( find /usr/home/hypo/websites -name "*.html" -atime "+30" ); echo rm $file; 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