ls -ld `find * -type d -prune`

note that those are back-quotes around the find command.

If you're worried about blowing your command-line buffer, if you've got a
*lot* of directories, use:

find * -type d -prunt | xargs ls -ld


At 03:05 PM 5/1/01 -0800, you wrote:
>what I would like to see is all directories...not files starting with a 
>particular letter but all directories...
>
>ls -d   - doesn't work
>ls -ld p*  - doesn't work either
>
>
>>
>>Roy,
>>
>>You could do say ls -ld p* to list the directories starting with p.
>>
>>Rgds,
>>
>>raja 
>>--
>>
>>On Tue, 01 May 2001 13:35:46  
>> Roy Ferguson wrote:
>>>what is the ls command to view only a list of directories?
>>>
>>>ls -la lists both files and directories...I want to view only a list of 
>>>directories...
>>>
>>>environment is sun sparc solaris 2.6
>>>
>>>thanks in advance
>>>
>>>roy
>>>
>>>-- 
>>>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>>>-- 
>>>Author: Roy Ferguson
>>>  INET: [EMAIL PROTECTED]
>>>
>>>Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
>>>San Diego, California        -- Public Internet access / Mailing Lists
>>>--------------------------------------------------------------------
>>>To REMOVE yourself from this mailing list, send an E-Mail message
>>>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>>>the message BODY, include a line containing: UNSUB ORACLE-L
>>>(or the name of mailing list you want to be removed from).  You may
>>>also send the HELP command for other information (like subscribing).
>>>
>>
>>
>>Get 250 color business cards for FREE!
>>http://businesscards.lycos.com/vp/fastpath/
>>-- 
>>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>>-- 
>>Author: Viraj Luthra
>>  INET: [EMAIL PROTECTED]
>>
>>Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
>>San Diego, California        -- Public Internet access / Mailing Lists
>>--------------------------------------------------------------------
>>To REMOVE yourself from this mailing list, send an E-Mail message
>>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>>the message BODY, include a line containing: UNSUB ORACLE-L
>>(or the name of mailing list you want to be removed from).  You may
>>also send the HELP command for other information (like subscribing).
>
>
>
>
>Roy E. Ferguson II
>Intel Sacramento
>916-854-1123
>
>-- 
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>-- 
>Author: Roy Ferguson
>  INET: [EMAIL PROTECTED]
>
>Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
>San Diego, California        -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from).  You may
>also send the HELP command for other information (like subscribing).
>
>

Dennis Taylor
--------------------------------
It was a book to kill time for those who liked it better dead.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Dennis Taylor
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to