Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Filename generation: sorting by inode number
- X-seq: zsh-workers 34960
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Filename generation: sorting by inode number
- Date: Sat, 25 Apr 2015 07:11:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uARftXClXJ8Hq8QS5MfcL0Wnr8CK0/7vNgf6Awwy9rc=; b=QFf/FR4cWnVE59l6Tnn+u5QaYsKec4eSh3/b6pGcKSm/Mw/P5chTlEc1yKgDBqriD1 XPmOeFtWpm3SUrb5QcRGB2Ort+X3qqUWDE9wMwtztk7F/SqPtHMovOsNC9+YXj6pS3KO v0EeiBMTOXvKlRUTPxK1s4IvK6PRHaBIGg8VqR+9w/61uBAC9IL8tG5heWolQXz21XCK /kElB5aW57Ha+qenjYL1Y7BhELboDzo/0+bW11UvJlqTbC/D7XwdcR/7Vvcy50MaYkYi 3eneuhXr/tmXjy+lfdtdYvNiiBvkrAfG+wDTe6nn78D6H/qTEIVPMcgMzLasxYLvCivy RJLw==
- In-reply-to: <20150425001719.GA12262@xvii.vinc17.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150425001719.GA12262@xvii.vinc17.org>
On Sat, Apr 25, 2015 at 2:17 AM, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> With the "o" glob qualifier for filename generation, it is not possible
> to sort by inode number. Such a feature could be very useful to speed up
> file reading on an ext3 file system when the files are not in the cache.
>
> See:
> https://lists.debian.org/debian-user/2015/04/msg01310.html
> http://comments.gmane.org/gmane.mail.mutt.devel/4089
Everything is possible with the "o" glob qualifier by virtue of the
"e" specifier;
zmodload -aF zsh/stat -b:stat b:zstat
ls -Udi *(noe:'zstat -L -A REPLY +inode $REPLY:')
You can also stick that in a helper function ins and use *(no+ins).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author