![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
resut
这个作者很懒,什么都没留下…
展开
-
删除指定文件夹n天以前的文件
if [ $# != 2 ];thenecho usage:sh regular_clean.sh file_path file_days exitfipath=$1day=$2if [ ! -d $path ];then echo "the file is not exist" exitfiif [ -s $path ];then ech...原创 2019-02-11 20:06:27 · 402 阅读 · 0 评论 -
删除一个文件夹里的部分目录
if [ $# != 1 ]then echo usage:sh delete.sh seqs_dir exitfiseq_dir=$1for file_name in `ls $seq_dir`do dir_name=$seq_dir$file_name if [ -d $dir_name ] then declare -i ...原创 2019-06-02 19:22:11 · 367 阅读 · 0 评论