使用shell打印所有void子目录

时间:2016-04-06 19:15:31

标签: bash shell directory directory-structure

我想获取目录的所有void后代目录的列表。我意识到我无法使用任何外壳轻松完成此操作。你会怎么做?

然而,我可以使用python更轻松地完成它。例如:

#!/usr/bin/python3
from os import walk, listdir
for path,_,_ in walk("."):
     if listdir(path)==[]:
         print(path)

1 个答案:

答案 0 :(得分:2)

使用SELECT jo.Job_Operation, jo.Job, jo.Work_Center, jo.Operation_Service, jo.Est_Total_Hrs, ISNULL((SELECT SUM(jot.Act_Run_Hrs) FROM PRODUCTION.dbo.Job_Operation_Time jot WHERE jot.Job_Operation = jo.Job_Operation),0) AS Cost FROM PRODUCTION.dbo.Job_Operation jo WHERE jo.Job = 'A5076027' 命令:

find