Can ls be made to only list directories?

For Mongo anagram at desire.wright.edu
Fri Sep 7 12:52:18 AEST 1990


In article <3899 at sactoh0.SAC.CA.US>, jak at 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



More information about the Comp.unix.questions mailing list