查找文件大小為0的文件
find . -name "*" -type f -size 0c
查找文件大小為0的文件并刪除
find . -name "*" -type f -size 0c | xargs -n 1 rm -f
查找文件為空的文件昼牛,并把列表輸入到empty_list.txt
find -type d -empty > empty_list.txt
刪除文件為空的文件夾
cat empty_list.txt | while read line; do rm -r $line; done