Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ogicse!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.questions Subject: Re: Can ls be made to only list directories? Message-ID: <1990Sep3.032037.487@iwarp.intel.com> Date: 3 Sep 90 03:20:37 GMT References: <90243.151817SML108@psuvm.psu.edu> <13725@smoke.BRL.MIL> <14171@cbmvax.commodore.com> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 30 In-Reply-To: ag@cbmvax.commodore.com (Keith Gabryelski) In article <14171@cbmvax.commodore.com>, ag@cbmvax (Keith Gabryelski) writes: | Which will list all subdirectories also; which is probably not what | Scott wanted. | | $ ls -ld `echo */.` | | is probably more in tune to what was requested. CAVEAT: directories | starting with `.' are not displayed. Modify as needed. A tip from someone who knows launching processes is expensive: You *never* need `echo something` Just use something Think about it. And that'd make your command line pretty close to mine (at least *one* of mine :-), as in: $ ls -ld */. Just another UNIX hacker, -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/