I need make an script to calculate the number of dirs and subdirs for separate
I make this but only calculate the sum of all
#!/bin/bash
find $1 -maxdepth 1 $TIPO | wc -l
TIPO=""
case $2 in
-d)TIPO1="-type d";;
-f)TIPO2="-type f";;
-b)TIPO3="-type f -o -type d"
esac
echo "hay" $TIPO1 "archivos tipo d"
echo "hay" $TIPO2 "archivos tipo f"
echo "hay" $TIPO3 "de d y f"