I an writing a script in Linux and need to go over all subdirectories names in a given directory. How can i loop these directories (and skip regular files).
For example, the given directory is /tmp/ and has the following subdirectories: /tmp/A, /tmp/B, /tmp/C I want to retrieve A,B,C.