cat del_f.sh
#!/bin/sh
#cd /home/zqlx/NBMediaServer/data/hdfs_shell/data
#find ./ -name "*" -exec rm {} \;
`find /home/zqlx/NBMediaServer/data/hdfs_shell/data/finish -mtime +90 -type f | xargs rm -rf` && //清理90天之前的文件
#find ./ -ctime +90 -exec -exec rm -vi {} \;
#cd /opt/emc_data_bak/data_bak/data/hdfs_shell/data
#find . -name "*" -exec rm {} \;
`find /opt/emc_data_bak/data_bak/data/hdfs_shell/data/finish -mtime +90 -type f | xargs rm -rf` //清理90天之前的文件
#!/bin/sh
#cd /home/zqlx/NBMediaServer/data/hdfs_shell/data
#find ./ -name "*" -exec rm {} \;
`find /home/zqlx/NBMediaServer/data/hdfs_shell/data/finish -mtime +90 -type f | xargs rm -rf` && //清理90天之前的文件
#find ./ -ctime +90 -exec -exec rm -vi {} \;
#cd /opt/emc_data_bak/data_bak/data/hdfs_shell/data
#find . -name "*" -exec rm {} \;
`find /opt/emc_data_bak/data_bak/data/hdfs_shell/data/finish -mtime +90 -type f | xargs rm -rf` //清理90天之前的文件
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14661773/viewspace-1318780/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14661773/viewspace-1318780/