Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: type discriminating directory listing Keywords: ls, subdirectories, symbolic-links Message-ID: <1591@auspex.auspex.com> Date: 8 May 89 18:55:44 GMT References: <1529@cmx.npac.syr.edu> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 7 >what would be the command for getting a partial directory listings >of only the subdirectories and symbolic-links ? If you mean "what would be the command for listing all those files within a particular directory that are either subdirectories or symbolic links", try "ls -l | egrep '^[dl]'". If you want a recursive listing of that flavor, try "find . \( -type d -o -type l \) -print".