From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11752 invoked from network); 4 Aug 2005 18:48:21 -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 18:48:21 -0000 Received: (qmail 93148 invoked from network); 4 Aug 2005 18:48:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Aug 2005 18:48:14 -0000 Received: (qmail 8206 invoked by alias); 4 Aug 2005 18:48:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9230 Received: (qmail 8196 invoked from network); 4 Aug 2005 18:48:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Aug 2005 18:48:06 -0000 Received: (qmail 92035 invoked from network); 4 Aug 2005 18:48:06 -0000 Received: from zproxy.gmail.com (64.233.162.204) by a.mx.sunsite.dk with SMTP; 4 Aug 2005 18:48:01 -0000 Received: by zproxy.gmail.com with SMTP id i11so258106nzh for ; Thu, 04 Aug 2005 11:48:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b61RQn/MyhSI+V4nDbayW9vm0JfQFhyLh0W47cLOTmwxrRknNTxwJiG/SKcaCuNf6GzZv94VAKjSAh2IWzqX/TuniLu8LAVov5xe0dnvi1DI0S+JQ71L8zsveimC9WRiXCJFqy63O1PFs4PTI5faUjEfQXF+kr2DrOAvxHj+jNk= Received: by 10.36.178.17 with SMTP id a17mr955219nzf; Thu, 04 Aug 2005 11:48:00 -0700 (PDT) Received: by 10.36.19.1 with HTTP; Thu, 4 Aug 2005 11:48:00 -0700 (PDT) Message-ID: <237967ef0508041148f43c87@mail.gmail.com> Date: Thu, 4 Aug 2005 20:48:00 +0200 From: Mikael Magnusson Reply-To: Mikael Magnusson To: zsh-users@sunsite.dk Subject: Re: Sorting files In-Reply-To: <20050804.203836.63133092.Meino.Cramer@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050804.203836.63133092.Meino.Cramer@gmx.de> 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=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.4 On 8/4/05, Meino Christian Cramer wrote: >=20 > Hi, >=20 > 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. >=20 > I would understand this, if I had submitted something like: >=20 > print -l **/*(oL) >=20 > which includes directories due to the missing ".", but when I submit: >=20 > print -l **/*(.,oL) >=20 > I would expect "all files sorted by their size". >=20 > But as always, the problem is probably caused by the person sitting > right in front of my monitor, I fear ;) >=20 > 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 ? >=20 > Thanks a lot in advance for any help or hint ! :O) >=20 > 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=20 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) --=20 Mikael Magnusson