Sample Header Ad - 728x90

What is the proper way to loop through each directory in a for loop?

0 votes
3 answers
3013 views
For example, in this for loop
for var in ?????
do
    dummy command
done
I would like to be able to loop through each directory in the one that I am currently in, but it will be an unknown list of directories so I can't write every single one into where the question marks are. Any help is appreciated.
Asked by Anonymous (11 rep)
Jun 8, 2020, 05:24 PM
Last activity: Aug 25, 2023, 12:34 PM