From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21499 invoked from network); 4 Aug 2005 19:52:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Aug 2005 19:52:07 -0000 Received: (qmail 44857 invoked from network); 4 Aug 2005 19:52:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Aug 2005 19:52:01 -0000 Received: (qmail 21622 invoked by alias); 4 Aug 2005 19:51:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9234 Received: (qmail 21612 invoked from network); 4 Aug 2005 19:51:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Aug 2005 19:51:52 -0000 Received: (qmail 43856 invoked from network); 4 Aug 2005 19:51:52 -0000 Received: from viefep11-int.chello.at (213.46.255.27) by a.mx.sunsite.dk with SMTP; 4 Aug 2005 19:51:47 -0000 Received: from Dingo ([213.47.104.218]) by viefep11-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050804195146.MPHJ2678.viefep11-int.chello.at@Dingo> for ; Thu, 4 Aug 2005 21:51:46 +0200 From: Christian Taylor To: "zsh-users" Subject: Re: Sorting files Date: Thu, 4 Aug 2005 21:51:33 +0200 User-Agent: KMail/1.8 References: <20050804.203836.63133092.Meino.Cramer@gmx.de> In-Reply-To: <20050804.203836.63133092.Meino.Cramer@gmx.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200508042151.33462.cht@chello.at> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Meino Christian Cramer wrote: > Hi, > > I played around with combinations including expressions like > **/*(.,oL) trying to get a listing of all files found !including > those of the subdirectories! sorted by their size. I want one big > listing sorted "once" -- but I got "seperated" parts sorted each for > themselves. > > I would understand this, if I had submitted something like: > > print -l **/*(oL) > > which includes directories due to the missing ".", but when I submit: > > print -l **/*(.,oL) > > I would expect "all files sorted by their size". If I'm not mistaken, this means "match everything that is either a regular file OR ANYTHING, and sort by size", because of the comma in the glob qualifier. Omitting it should do the trick: print -l **/*(.oL) lg, Christian