From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24180 invoked by alias); 15 Aug 2011 20:27:49 -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: 16250 Received: (qmail 11373 invoked from network); 15 Aug 2011 20:27:46 -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.0 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ah8GgAgENcqlU4Y8kK7JsMR8pN9wOzoGJnVI500+ejI=; b=UKMLYPjGuL5CCzasG97ta972RKGmAvh6uZt4ke4uRtl1qCL8Th8djAOdTBUdjA9OcF jPl+NIACQjyCXSyOc13cOi8Yh3a3+GXDVhQeOSGTltt41pW1QIQ7rcj4YnB5u6FDOqzj IK4N9OX7cIssZ6C1vK8SFhWtjHHFMHgyWNgA4= Sender: Tristan Webb Date: Mon, 15 Aug 2011 16:38:18 +0100 From: Tristan Webb To: zsh-users@zsh.org Subject: Re: `ls *(.)` shows "just files", what shows "just folders"? Message-ID: <20110815153818.GA24914@mohan.dcs.warwick.ac.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Hi Tj, I'm not sure that this is optimal but I use: ls -d *(/) Tristan On Sun, Aug 14, 2011 at 09:08:39PM -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? > > (I've been using `find * -maxdepth 0 -type d` but I assume this is > 'more efficient') > > TjL -- Tristan Webb PhD Student Department of Computer Science and Complexity Science Doctoral Training Centre Warwick, UK Tel: 024 765 73789 (Work) Tel: 01926334727 (Home) Mobile: 077 082 19078 Website: http://www.warwick.ac.uk/go/tristanwebb Identi.ca: ksira