Need a way to count sub-directories and get a total count
I am trying to figure out a way to list and count all directories with subdirectories below it and then give a summary count and extract that to a flatfile to put into excel.
I copied a number of old DLT tapes to my system. I created a directory for each tape and then dumped the contents of each tape into this directory. Each subdirectory is symbolic of a record. So i basically need a tally count of all the subdirectories so that I can match that number up against my database to ensure that everything copied over.
find . -type f -print | wc -l
put it just does not give me what I need.
This system does not have internet access and I am remote into it but locked down by a vpn so I cant copy any utilities such as the tree command.