Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsfcgl!seibel From: seibel@cgl.ucsf.edu (George Seibel) Newsgroups: comp.unix.questions Subject: Re: type discriminating directory listing Message-ID: <11583@cgl.ucsf.EDU> Date: 8 May 89 08:22:54 GMT References: <1529@cmx.npac.syr.edu> Sender: daemon@cgl.ucsf.edu Reply-To: seibel@hegel.mmwb.ucsf.edu (George Seibel) Organization: Computer Graphics Lab, UCSF Lines: 16 In article tale@pawl.rpi.edu writes: ]In article <1529@cmx.npac.syr.edu> gefuchs@skolem.uucp (Gill E. Fuchs) writes: ]GEF> what would be the command for getting a partial directory listings ]GEF> of only the subdirectories and symbolic-links ? ] ]% ls -al | egrep '^[ld]' ] ]It isn't the best as far as being stuck with the long format of ls, ]but it does the job. try this for a nice listing of directories only. cant guarantee how portable it is, but it works on a number of bsd-ish and sysV-ish machines: % /bin/ls -d */ George Seibel, UCSF.