Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!umbc3!math9.math.umbc.edu!rouben From: rouben@math9.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.unix.questions Subject: Re: Can ls be made to only list directories? Message-ID: <3861@umbc3.UMBC.EDU> Date: 31 Aug 90 22:34:30 GMT References: <90243.151817SML108@psuvm.psu.edu> Sender: newspost@umbc3.UMBC.EDU Reply-To: rouben@math9.math.umbc.edu.UUCP (Rouben Rostamian) Organization: Mathematics Department University of Maryland, Baltimore County Lines: 16 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? > I use the following on an ultrix machine: alias lsd '/bin/ls -aF | grep /$ | xargs /bin/ls -Cd' It may require minor modifications to run on other machines. -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County rostamian@umbc.bitnet Baltimore, MD 21228, U.S.A. rostamian@umbc3.umbc.edu