#!/bin/bask # cd /tmp for a in * ;do if [ ! -s $a ] ;then #[ ! -s $a ] 文件爲空返回爲真
rm -rf $a fi done
測試:bash