how to list only dirs under a folder in linux?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix questions > how to list only dirs under a folder in linux?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    how to list only dirs under a folder in linux?  
yihucd@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-06 12:52 AM

how to list only dirs under a folder in linux?






[ Post a follow-up to this message ]



    Re: how to list only dirs under a folder in linux?  
Chris F.A. Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-06 12:52 AM

On 2006-09-01, yihucd@gmail.com wrote:
> how to list only dirs under a folder in linux?

What's a folder?

To list directories:

ls -d */



--
Chris F.A. Johnson, author   |    <http://cfaj.freeshell.org>
Shell Scripting Recipes:     |  My code in this post, if any,
A Problem-Solution Approach  |         is released under the
2005, Apress                 |    GNU General Public Licence





[ Post a follow-up to this message ]



    Re: how to list only dirs under a folder in linux?  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-06 12:52 AM

yihucd@gmail.com writes:

> how to list only dirs under a folder in linux?

find $folder -type d -print

--
__Pascal Bourguignon__                     http://www.informatimago.com/

Pour moi, la grande question n'a jamais été: «Qui suis-je? Où vais-je?»
comme l'a formulé si adroitement notre ami Pascal, mais plutôt:
«Comment vais-je m'en tirer?» -- Jean Yanne





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:26 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register