shell 编程-删除空文件

首先进入到对应目录

for a in * 
do
if [ ! -s $a ]
then
rm -rf $a 
fi
done
skr
原文地址:https://www.cnblogs.com/ckxkexing/p/14766767.html