SyntaxFix
Write A Post
Hire A Developer
Questions
Get a count of only the directories in the current directory
echo */ | wc
you will get out put like 1 309 4594
1 309 4594
2nd digit represents no. of directories.
2nd digit
or
tree -L 1 | tail -1