Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!uoft02.utoledo.edu!desire!anagram From: anagram@desire.wright.edu ((For Mongo)) Newsgroups: comp.unix.questions Subject: Re: Can ls be made to only list directories? Message-ID: <1176.26e6c512@desire.wright.edu> Date: 7 Sep 90 02:52:18 GMT References: <90243.151817SML108@psuvm.psu.edu> <13725@smoke.BRL.MIL> <57@raysnec.UUCP> <3899@sactoh0.SAC.CA.US> Lines: 12 In article <3899@sactoh0.SAC.CA.US>, jak@sactoh0.SAC.CA.US (Jay A. Konigsberg) writes: > Come on people, this really is trivial! The basics are _simple_. > Just do `ls -l | grep "^d"`. However, here is a little shell script > I wrote a longgg time ago for splunking around the system. You think that's really trivial? I replied to the original question, and from his response, I take it that my suggestion worked for him. On the machine I use, Utek SysV (BSD), there is a flag (-X) that lists just directories. That's trivial! Anagram