thanks for you tip
i only want to enter current directory (1 level), so with a bit modification this done the job. thanks again
home=`pwd`
(ls -l | grep ^d | awk '{ print $9 }') |
while read dirname
do
cd "$home/$dirname"
echo "We are in the $dirname directory"
done