Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: unix command question
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: rferguso_at_level1.com
>>>
>>>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: ListGuru_at_fatcity.com (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: viraj999_at_lycos.com
>>
>>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: ListGuru_at_fatcity.com (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: rferguso_at_level1.com
>
>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: ListGuru_at_fatcity.com (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
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Dennis Taylor INET: ismgr_at_pctc.com 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: ListGuru_at_fatcity.com (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).Received on Wed May 02 2001 - 13:43:52 CDT