Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!uunet!cbmvax!ag From: ag@cbmvax.commodore.com (Keith Gabryelski) Newsgroups: comp.unix.questions Subject: Re: Can ls be made to only list directories? Message-ID: <14171@cbmvax.commodore.com> Date: 2 Sep 90 17:41:27 GMT References: <90243.151817SML108@psuvm.psu.edu> <13725@smoke.BRL.MIL> Reply-To: ag@cbmvax (Keith Gabryelski) Organization: Commodore-Amiga Unix; West Chester, PA Lines: 16 In article <13725@smoke.BRL.MIL> gwyn@smoke.BRL.MIL (Doug Gwyn) writes: >In article <90243.151817SML108@psuvm.psu.edu> SML108@psuvm.psu.edu (Scott the Great) writes: >>As the subject asks, is there a set of options which will limit >>ls to listing directories? > > $ ls -ld `find . -type d -print` # for example Which will list all subdirectories also; which is probably not what Scott wanted. $ ls -ld `echo */.` is probably more in tune to what was requested. CAVEAT: directories starting with `.' are not displayed. Modify as needed. Pax, Keith