循环取文件的脚本

#for d in `find /backup/data/ -type d -mtime +0 -maxdepth 1`
# do
# mv $d /remotebackup
# done

#for d in `find /backup/ -type d -mtime +3 -maxdepth 1`
# do 
# rm -rf $d
# done

posted @ 2014-01-09 09:25  seasonzone  阅读(91)  评论(0编辑  收藏  举报