Librar a los directorios Bash
#loops only through directories
for d in */ ; do
echo "$d"
done
Obnoxious Oyster
#loops only through directories
for d in */ ; do
echo "$d"
done
mkdir /tmp/A /tmp/B /tmp/C "/tmp/ dir with spaces"
for file in /tmp/*/ ; do file="${file%/}"; echo "${file##*/}"; done