Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Sorting files
- X-seq: zsh-users 9234
- From: Christian Taylor <cht@xxxxxxxxx>
- To: "zsh-users" <zsh-users@xxxxxxxxxx>
- Subject: Re: Sorting files
- Date: Thu, 4 Aug 2005 21:51:33 +0200
- In-reply-to: <20050804.203836.63133092.Meino.Cramer@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050804.203836.63133092.Meino.Cramer@xxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author