Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Sorting files
- X-seq: zsh-users 9230
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Sorting files
- Date: Thu, 4 Aug 2005 20:48:00 +0200
- 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=
- 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>
- Reply-to: Mikael Magnusson <mikachu@xxxxxxxxx>
On 8/4/05, Meino Christian Cramer <Meino.Cramer@xxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author