Question : ksh loop through all the subdirectories within a directory

I want to loop thru all the sub directories within a directory using shell script. Please advise.

Answer : ksh loop through all the subdirectories within a directory

you may do

find /dirpath -type dir 2> /dev/null | while read dir
do
   basename $dir
done

Random Solutions  
 
programming4us programming4us