Answers for "shell script list directories"

4

get list of directories bash

for d in */ ; do
    echo "$d"
done
Posted by: Guest on April-16-2020
1

loop through directories bash

#loops only through directories
for d in */ ; do
    echo "$d"
done
Posted by: Guest on March-28-2020
9

linux list directories

ls -d */
Posted by: Guest on June-15-2020

Browse Popular Code Answers by Language