Return to BSD News archive
Xref: sserve comp.unix.misc:17558 comp.unix.admin:30256 comp.unix.bsd:16668 comp.unix.programmer:26818 comp.unix.questions:66345 comp.unix.shell:23427 Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!caen!usenet.cis.ufl.edu!usenet.eel.ufl.edu!news.mathworks.com!newshost.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!agate!dog.ee.lbl.gov!newshub.nosc.mil!rcp6.elan.af.mil!usenet From: Jay J Oh <OHJ%CSCADPS@mhs.elan.af.mil> Newsgroups: comp.unix.misc,comp.unix.admin,comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell Subject: A Unix command to obtain directory name only Date: 7 Jul 1995 19:54:20 GMT Organization: Computer Sciences Corporation Lines: 14 Message-ID: <3tk3dc$4ml@rcp6.elan.af.mil> NNTP-Posting-Host: 129.198.78.165 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.1N (Windows; I; 16bit) I am trying to invoke a unix command to obtain only directory names listing for a given path. I tried using 'ls -d *', but this includes files also. I also tried 'find -type d . -print' but this command recursively list all the subdirectories, which I don't want. Can anyone have any idea how to solve this problem? Jay J Oh OHJ%CSCADPS@mhs.elan.af.mil