相关疑难解决方法(0)

查找空目录UNIX

我需要为给定的目录列表找到空目录.有些目录里面有目录.

如果内部目录也是空的,我可以说主目录是空的,否则它不是空的.

我该怎么测试呢?

例如:

A>A1(file1),A2 this is not empty beacuse of file1
B>B1(no file) this is empty
C>C1,C2 this is empty
Run Code Online (Sandbox Code Playgroud)

unix directory bash

88
推荐指数
6
解决办法
6万
查看次数

标签 统计

bash ×1

directory ×1

unix ×1