reference:
https://www.linuxprobe.com/linux-ls-grep-wc.html
https://blog.csdn.net/developerof/article/details/79566570
统计文件个数(不递归):
ls -l | grep "^-" | wc -l
删除空文件:
find . -name "*" -type f -size 0c | xargs -n 1 rm -f
reference:
https://www.linuxprobe.com/linux-ls-grep-wc.html
https://blog.csdn.net/developerof/article/details/79566570
统计文件个数(不递归):
ls -l | grep "^-" | wc -l
删除空文件:
find . -name "*" -type f -size 0c | xargs -n 1 rm -f