Answers for "list directories in bash"

4

get list of directories bash

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

linux list directories

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

bash find only list directories

find . -type d -iname "<your regex>" -printf '%fn'
Posted by: Guest on July-29-2021

Browse Popular Code Answers by Language