List directories and sub directories recursively excluding files

Tags
beginners

 

 
Thread Tools Search this Thread
# 1  
Old 02-23-2011
List directories and sub directories recursively excluding files

Hi,

Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process.
I wanted to disply using a unix command all the directories recursively excluding files.

I tried 'ls -FR' but that display files as well, need to exclude files.

Regards,
Pointers
# 2  
Old 02-23-2011
man find:
Code:
find /path -type d -print

# 3  
Old 02-23-2011
Thank you very much.

Regards,
Pointers
# 4  
Old 02-23-2011
Tree...
Code:
find . -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'

 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Find command excluding directories and some files jcdole Shell Programming and Scripting 5 05-14-2017 01:00 PM
Archiving and moving files into directories, creating directories, etc. wyclef Shell Programming and Scripting 5 03-25-2015 07:30 PM
Find all files in the current directory excluding hidden files and directories ksailesh1 UNIX for Advanced & Expert Users 7 02-03-2014 06:09 AM
List the directories, having given pattern in the directories name, sorted by creation date Siva SQL UNIX for Dummies Questions & Answers 2 05-05-2013 01:45 AM
How to list all the files, directories and sub-directories in the current path except one directory? Manjunath B Shell Programming and Scripting 7 09-13-2012 11:00 AM
Excluding directories from a find nixie Shell Programming and Scripting 9 08-12-2012 03:03 PM
Copy files/directories excluding multiple paterns ajayyadavmca Shell Programming and Scripting 0 04-25-2012 02:23 AM
Deleting all files recursively from directories while ignoring one file type pasc Shell Programming and Scripting 3 10-16-2011 09:19 AM
Recursively move directories along with files/specific files frintocf Shell Programming and Scripting 8 05-24-2011 08:04 AM
How to list all the directories, sub directories in a mount along with size in ascending order? nmakkena Shell Programming and Scripting 4 10-27-2010 03:56 AM
Copy Directories excluding files karthik82 UNIX for Dummies Questions & Answers 1 09-01-2009 06:31 AM
Excluding directories with find x96riley3 UNIX for Dummies Questions & Answers 3 04-08-2009 05:12 AM
cp -r excluding certain directories? sarnobat Shell Programming and Scripting 2 01-13-2009 07:30 PM
excluding directories while using tar uchachra UNIX for Dummies Questions & Answers 2 03-12-2002 02:38 AM