shell 编程-删除空文件

首先进入到对应目录

for a in * 
do
if [ ! -s $a ]
then
rm -rf $a 
fi
done
posted @ 2021-05-14 00:37  ckxkexing  阅读(153)  评论(0编辑  收藏  举报