shell 脚本 删除文件内容为空的文件时间:2023-03-08 21:54:24 #!/bin/bask # cd /tmp for a in * ;do if [ ! -s $a ] ;then #[ ! -s $a ] 文件为空返回为真 rm -rf $a fi done 测试: