如何计算在特定文件夹下有多less个文件夹(包括子文件夹)?
使用find来select目录和wc来计算它们。
find
wc
find <directory> -mindepth 1 -type d | wc -l
树-d | grep目录| awk -F'''{print $ 1}'