shell
resut
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
删除指定文件夹n天以前的文件
if [ $# != 2 ]; then echo usage:sh regular_clean.sh file_path file_days exit fi path=$1 day=$2 if [ ! -d $path ];then echo "the file is not exist" exit fi if [ -s $path ];then ech...原创 2019-02-11 20:06:27 · 485 阅读 · 0 评论 -
删除一个文件夹里的部分目录
if [ $# != 1 ] then echo usage:sh delete.sh seqs_dir exit fi seq_dir=$1 for 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 · 415 阅读 · 0 评论
分享