From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18962 invoked from network); 4 Aug 2005 19:09:39 -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:09:39 -0000 Received: (qmail 9923 invoked from network); 4 Aug 2005 19:09:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Aug 2005 19:09:30 -0000 Received: (qmail 13187 invoked by alias); 4 Aug 2005 19:09:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9232 Received: (qmail 13177 invoked from network); 4 Aug 2005 19:09:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Aug 2005 19:09:24 -0000 Received: (qmail 8938 invoked from network); 4 Aug 2005 19:09:24 -0000 Received: from p54850d88.dip0.t-ipconnect.de (HELO solfire) (84.133.13.136) by a.mx.sunsite.dk with SMTP; 4 Aug 2005 19:09:20 -0000 Received: from localhost ([127.0.0.1]) by solfire with esmtp (Exim 4.42) id 1E0l7C-0004se-8h; Thu, 04 Aug 2005 21:10:54 +0200 Date: Thu, 04 Aug 2005 21:10:50 +0200 (CEST) Message-Id: <20050804.211050.78707635.Meino.Cramer@gmx.de> To: mikachu@gmail.com Cc: zsh-users@sunsite.dk From: Meino Christian Cramer In-Reply-To: <237967ef0508041148f43c87@mail.gmail.com> References: <20050804.203836.63133092.Meino.Cramer@gmx.de> <237967ef0508041148f43c87@mail.gmail.com> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Rcpt-To: mikachu@gmail.com, zsh-users@sunsite.dk X-SA-Exim-Mail-From: Meino.Cramer@gmx.de Subject: Re: Sorting files Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.1+cvs (built Sat, 28 Aug 2004 13:10:40 +0200) X-SA-Exim-Scanned: Yes (on solfire) 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.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 From: Mikael Magnusson Subject: Re: Sorting files Date: Thu, 4 Aug 2005 20:48:00 +0200 > On 8/4/05, 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". > > > > But as always, the problem is probably caused by the person sitting > > right in front of my monitor, I fear ;) > > > > Is there a way to get one big listing starting with the smallest file > > of all files found (including those in the subdirectories) and ending > > with the largest one? ...without the conventional way of slowly > > smokeing a sort-pipe ? > > > > Thanks a lot in advance for any help or hint ! :O) > > > > Keep zshing! > > Meino > > >From the manpage, > > o specifies how the names of the files should be sorted. > if d, files in subdirectories appear before those > in the current directory at each level of the search > -- this is best com- > bined with other criteria, for example `odon' to sort > on names for files > within the same directory. > > I think that is what you want, but i'm not sure with that description :) > ie, print -l **/*(.,odL) Hi Mikael ! Thanks for reply ! :O) print -l **/*(.,odL) gives (zsh 4.2.5, Linux 2.6.12.3) zsh: number expected ? Now I am totally confused.... X-) Happy zshing! Meino > -- > Mikael Magnusson >