From: Bryan Hunt <irishjava@gmail.com>
To: "zsh-users" <zsh-users@zsh.org>
Subject: Globbing question (beginner)
Date: Thu, 12 Aug 2010 21:43:59 +0100 [thread overview]
Message-ID: <1281644885-sup-6838@linuxacer> (raw)
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 ?
--
--
next reply other threads:[~2010-08-12 21:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 20:43 Bryan Hunt [this message]
2010-08-12 21:21 ` Mikael Magnusson
2010-08-12 21:22 ` Frank Terbeck
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=1281644885-sup-6838@linuxacer \
--to=irishjava@gmail.com \
--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).