Not signed in (Sign In)

Vanilla 1.0 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorsgsax
    • CommentTimeMay 9th 2006 edited
     
    I know this is a FAQ for me, so I thought I'd share this with the rest of the class.

    Many times we would like a recursive listing of directories only. There are many not-so-useful solutions out there in the wild. Here's what finally worked for me:

    <code>$ find * -type d</code>

    This gives you a recursive list of directories relative to the current path. Now that you have this list, you can use it in a bash for loop, or anywhere else you may find it handy.

    Enjoy!
    Seth
    •  
      CommentAuthorthe_billness
    • CommentTimeMay 10th 2006 edited
     
    To clarify: The command (as displayed) only shows from the current directory, down.

    --Bill