From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28603 invoked from network); 5 Aug 2005 14:30:15 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Aug 2005 14:30:15 -0000 Received: (qmail 90150 invoked from network); 5 Aug 2005 14:30:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Aug 2005 14:30:07 -0000 Received: (qmail 24405 invoked by alias); 5 Aug 2005 14:30:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9246 Received: (qmail 24382 invoked from network); 5 Aug 2005 14:29:59 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Aug 2005 14:29:59 -0000 Received: (qmail 89112 invoked from network); 5 Aug 2005 14:29:59 -0000 Received: from zproxy.gmail.com (64.233.162.202) by a.mx.sunsite.dk with SMTP; 5 Aug 2005 14:29:46 -0000 Received: by zproxy.gmail.com with SMTP id i11so355731nzh for ; Fri, 05 Aug 2005 07:29:44 -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=OW8KXOoNuS63VGstwXuWBtBdqRIGVI7bQgd/3msN3/VASqS8pOY75/EaeznmMUsTR7bwp/eRAAiDfXmxEqRvK3gFsmqPaSos2LeoQkH8XVfL1gtF+T7AUtPKWHUVKSBfDAB92MaFw+lMNT0tencWCfcaXMvVLxCkOFaTNmmGjdU= Received: by 10.36.251.4 with SMTP id y4mr1338082nzh; Fri, 05 Aug 2005 07:29:44 -0700 (PDT) Received: by 10.36.19.1 with HTTP; Fri, 5 Aug 2005 07:29:44 -0700 (PDT) Message-ID: <237967ef05080507292de3ce07@mail.gmail.com> Date: Fri, 5 Aug 2005 16:29:44 +0200 From: Mikael Magnusson Reply-To: Mikael Magnusson To: zsh@dervishd.net, zsh-users@sunsite.dk Subject: Re: Sorting files In-Reply-To: <20050805.160101.59466185.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> <20050805125243.GB105@DervishD> <20050805.160101.59466185.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/5/05, Meino Christian Cramer wrote: > From: DervishD > Subject: Re: Sorting files > Date: Fri, 5 Aug 2005 14:52:43 +0200 >=20 > Hi Ra=FAl ! :) >=20 > (sorry, if your name comes out somehow -- hrmm -- "encrypted"... > my Emacs seems to handle everything other than plain ascii a little > weird... ;) >=20 > Hmmm...interesting.. as soon as you mailed me that it works for you > my zsh seems to be that impressed, that s/he decided also to work > correctly....mysterious ! ;O) >=20 > More seriously... I dont know what's happening here. May be I > mispelled an option or forget a "-" somewhere... >=20 > More important: It WORKS ! :) (even for me! ;) >=20 > Another question in this context: > To check the options, I had to construct this one: >=20 > for i in **/*(.oL) > do > ls -ld $i > done | less >=20 > Is there any other more shorter way to achieve the same results with > less code -- especially without calling any other "tool" like > zsh/stat or xargs or such ? But I insist on getting filenames AND > sizes ! ;O) Not only the filename should be shown! >=20 > Ok, now this is more like a "coding contest" for me than a practical > excurse....but I like to tune things :O)) >=20 >=20 > Have a nice weekend ! > Meino Maybe you want something as simple as the following? ls -Ssh -- **/*(.) That'll sort all the files in descending size order and show the sizes. It will sort _all_ files by size, not just internally sort in each subdirectory, maybe that was what you wanted and then this won't help. Also obviously suffers from the too many arguments possibility. --=20 Mikael Magnusson ps sorry if i messed up the cc and/or to fields, gmail really doesn't want me to use mailing lists. When i hit Reply, it just replies to the last person and not the list, and when i select Reply To All it puts the person in To: and the list in Cc:, I'm not sure what I'm expected to do, don't use mailing lists a lot.