Linux伊甸园论坛 » Shell编程 » 如何统计一个文件夹(目录)内包含多少子文件夹(目录)??
中级会员
注册用户
查看详细资料
TOP
注册会员
认证会员
find . -type f | wc -l
ls -lR|grep "^d"|wc -l
版主
查看个人网站
阿天
初来乍到
原帖由 roofers 于 2008-8-17 18:09 发表 统计目录文件及子目录文件总数 find . -type f | wc -l 统计子目录个数 ls -lR|grep "^d"|wc -l