Bash foreach dir

for d in */ ; do
    echo "$d"
done
Prickly Pheasant