From: Frank Terbeck <ft@bewatermyfriend.org>
To: "zsh-users" <zsh-users@zsh.org>
Subject: Re: Globbing question (beginner)
Date: Thu, 12 Aug 2010 23:22:03 +0200 [thread overview]
Message-ID: <87hbiz4jd0.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <1281644885-sup-6838@linuxacer> (Bryan Hunt's message of "Thu, 12 Aug 2010 21:43:59 +0100")
Bryan Hunt 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])
Regards, Frank
prev parent reply other threads:[~2010-08-12 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 20:43 Bryan Hunt
2010-08-12 21:21 ` Mikael Magnusson
2010-08-12 21:22 ` Frank Terbeck [this message]
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=87hbiz4jd0.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=zsh-users@zsh.org \
/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).