Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

**HELP** how to do a listing of dirs and all sub dirs only

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 08-16-2011
bbraml bbraml is offline
Registered User
 
Join Date: Aug 2010
Last Activity: 16 August 2011, 2:18 PM EDT
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
**HELP** how to do a listing of dirs and all sub dirs only

I am trying to get a listing of ALL directories only under /export (as an example). I can get all the dirs directly under /export but I need any sub dirs under those dirs. I've looked (here and google) but can not find anything that works
Sponsored Links
    #2  
Old Unix and Linux 08-16-2011
bartus11's Unix or Linux Image
bartus11 bartus11 is offline
Registered User
 
Join Date: Apr 2009
Last Activity: 3 August 2016, 11:03 AM EDT
Posts: 3,733
Thanks: 7
Thanked 1,152 Times in 1,122 Posts

Code:
find /export -type d

Sponsored Links
    #3  
Old Unix and Linux 08-16-2011
bbraml bbraml is offline
Registered User
 
Join Date: Aug 2010
Last Activity: 16 August 2011, 2:18 PM EDT
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
awesome, thanks!
    #4  
Old Unix and Linux 08-16-2011
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 7 December 2016, 4:50 PM EST
Location: Saskatchewan
Posts: 21,664
Thanks: 1,010
Thanked 3,983 Times in 3,700 Posts
UNIX tools are flexible enough that you aren't likely to find canned solutions by googling "how do I do x with y". Learning some basic shell programming and shell commands would be a good start since you can do a lot with a little.
Sponsored Links
    #5  
Old Unix and Linux 08-16-2011
h@foorsa.biz h@foorsa.biz is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 31 March 2015, 5:33 AM EDT
Posts: 567
Thanks: 7
Thanked 46 Times in 44 Posts

Code:
#ls -laR /export | grep ^d

Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Move directory + sub dirs AriStar UNIX for Dummies Questions & Answers 1 09-21-2009 10:29 AM
monitoring dirs da-seot Shell Programming and Scripting 1 09-03-2007 03:55 AM
how to synchronize different dirs reldb Shell Programming and Scripting 1 12-09-2006 08:08 PM
Combining Two Dirs Phobos UNIX for Dummies Questions & Answers 2 01-26-2005 09:13 PM
dirs & colors tk876 UNIX for Dummies Questions & Answers 4 07-17-2001 01:03 AM



All times are GMT -4. The time now is 05:45 AM.