bash loop on directories in directory code example Example: loop through directories bash #loops only through directories for d in */ ; do echo "$d" done