Answers for "shell command script that counts the number of directories and sub-directories in the current directory"

1

number of directories in a directory linux

# this is the answer without using find
ls -lR | grep ^d | wc -l
Posted by: Guest on June-08-2021
0

Count files and directories using shell script

find /path/to/directory | wc -l
Posted by: Guest on August-05-2021

Code answers related to "shell command script that counts the number of directories and sub-directories in the current directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language