Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have a folder with some directories and some files (some are hidden, beginning with dot).
for d in *; do echo $d done
will loop through all files and directories, but I want to loop only through directories. How do I do that?
will loop through all files, but I want to loop only through directories. How do I do that?
I have a folder with some directories and some files.
will loop through all files, but I want to loop only through directories