I am looking for an easy way to get a count of sub directories within an output of directories. Basically I am trying to get a count of users per customer. They each have a directory:
then under that they have users
I am trying to get an easy command that will output the customer name (/home/customer/) with the number of user directories under that.
I am just using "ls -l /home/*" which prints out the user directories which I then have to manually count. I am sure there is a much easier way.
Thanks in advance!