show only last directories in bash code example
Example 1: find command also return directory names?
find . -type d -o -type f
Example 2: get list of directories bash
for d in */ ; do
echo "$d"
done
find . -type d -o -type f
for d in */ ; do
echo "$d"
done