linux 查看当前目录下每个子目录的文件数量 待我称王封你为后i 2021-06-24 15:59 492阅读 0赞 查看当前目录下每个子目录的文件数量 find . -maxdepth 1 -type d | while read dir; do count=$(find "$dir" -type f | wc -l); echo "$dir : $count"; done
还没有评论,来说两句吧...