Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Globbing question (beginner)
- X-seq: zsh-users 15279
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bryan Hunt <irishjava@xxxxxxxxx>
- Subject: Re: Globbing question (beginner)
- Date: Thu, 12 Aug 2010 23:21:33 +0200
- Cc: zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=hmKcG5pl1J6u0bu+6QctnzaxYJROQ4kWSEYHS+GXRgM=; b=i17xLzxCTLMzDtUq3fUo65k6enAQZDDsVD8oAupLD28cNDr3qpbnkssgw9WyO4zY0k Qgm4G9aQxg3yHrabvYAUOpWpcsuEzZgd6RPte/jH8SZdS5ykQw2DVXSbLeNMRxH8gcJX YUsGgaiRwjV5913HsrTaqP8tzHxAOrqH0T7ic=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pHJ1qArTe8Uz+Zm9VQ8ov5bJIhdDYuwt47ttVB32RbmxFdeh9Etg7XZyqOvyl+T7TP B4X4K0jbj58f37KFM3jR2ukDgLGyn0uXNmW65L0mnhMiZUhpilGFeuJwREHGCyBWAEcV FBXNdDgphowv5OgwPBi7HBTTknnrixm4KwzGw=
- In-reply-to: <1281644885-sup-6838@linuxacer>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1281644885-sup-6838@linuxacer>
On 12 August 2010 22:43, Bryan Hunt <irishjava@xxxxxxxxx> wrote:
> On a recent twitter feed, was posted the following snippet - Intended
> for printing the name of the most recently modified file in a tree:
>
> print ./**/*(om[1])
>
> I used this as a way of printing the 3 most recently modified files in
> a single directory:
>
> print ./*{(om[1]),(om[2]),(om[3])}
>
> But something troubles me, it looks ugly - surely there must exist a more
> elegant zshism ?
print ./*(om[1,3])
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author