Skip to main content
added 16 characters in body
Source Link
rubo77
  • 30.6k
  • 46
  • 141
  • 218

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?

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, but I want to loop only through directories. How do I do that?

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?

Question Protected by dr_
added 38 characters in body
Source Link
rubo77
  • 30.6k
  • 46
  • 141
  • 218

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, but I want to loop only through directories. How do I do that?

I have a folder with some directories and some files.

for d in *; do echo $d done 

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 (some are hidden, beginning with dot).

for d in *; do echo $d done 

will loop through all files, but I want to loop only through directories. How do I do that?

Tweeted twitter.com/#!/StackUnix/status/367710674056908800

how How do iI loop through only directories in bash?

I have a folder with some directories and some files.

for d in *; do echo $d done 

will loop through all files, but I want to loop only through directories. How do I do that?

how do i loop through only directories in bash?

I have a folder with some directories and some files.

for d in *; do echo $d done 

will loop through all files, but I want to loop only through directories

How do I loop through only directories in bash?

I have a folder with some directories and some files.

for d in *; do echo $d done 

will loop through all files, but I want to loop only through directories. How do I do that?

Source Link
rubo77
  • 30.6k
  • 46
  • 141
  • 218
Loading