zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-users@sunsite.dk
Subject: Re: Sorting files
Date: Thu, 4 Aug 2005 20:48:00 +0200	[thread overview]
Message-ID: <237967ef0508041148f43c87@mail.gmail.com> (raw)
In-Reply-To: <20050804.203836.63133092.Meino.Cramer@gmx.de>

On 8/4/05, Meino Christian Cramer <Meino.Cramer@gmx.de> 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)

-- 
Mikael Magnusson


  reply	other threads:[~2005-08-04 18:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-04 18:38 Meino Christian Cramer
2005-08-04 18:48 ` Mikael Magnusson [this message]
2005-08-04 19:10   ` Meino Christian Cramer
2005-08-04 19:18     ` Danek Duvall
2005-08-04 20:41       ` Stephane Chazelas
2005-08-05  3:01         ` Meino Christian Cramer
2005-08-05 10:47           ` Stephane CHAZELAS
2005-08-04 19:14 ` Christian Schneider
2005-08-04 21:19   ` Jens Kubieziel
2005-08-05  3:06   ` Meino Christian Cramer
2005-08-04 19:51 ` Christian Taylor
2005-08-05 10:51   ` zzapper
2005-08-05 12:57     ` Christian Taylor
2005-08-05 14:41     ` Meino Christian Cramer
2005-08-06  5:38     ` Summary: " Meino Christian Cramer
2005-08-06  9:22       ` Christian Taylor
2005-08-05 12:52 ` DervishD
2005-08-05 14:01   ` Meino Christian Cramer
2005-08-05 14:29     ` Mikael Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=237967ef0508041148f43c87@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).