August 24, 2006

[shell] find command

Filed under: Programming — HanaDaddy @ 11:50 pm

Check $path folder for the files that are older that 7 days and delete them.

 find $path 2>>$DLOG -mtime +7 ! -exec rm -rf {} \;

check man page

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

 

43 queries. 0.361 seconds. Powered by WordPress