From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1746 invoked by alias); 15 Aug 2011 01:43:04 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16237 Received: (qmail 25932 invoked from network); 15 Aug 2011 01:43:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Mon, 15 Aug 2011 03:43:01 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: `ls *(.)` shows "just files", what shows "just folders"? Message-ID: <20110815014301.GO20653@prunille.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <20110815014137.GN20653@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110815014137.GN20653@prunille.vinc17.org> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) On 2011-08-15 03:41:37 +0200, Vincent Lefevre wrote: > On 2011-08-14 21:08:39 -0400, TJ Luoma wrote: > > Somewhere along the way I learned that > > > > ls *(.) > > > > will tell 'ls' to only show files (not links, not directories) > > > > Is there a similar command which would show _only_ directories? > > ls -- *(/) > > See "Glob Qualifiers" in the zshexpn man page. I forgot: you probably also want the -d ls option: ls -d -- *(/) -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)