zsh-users
 help / color / mirror / code / Atom feed
* Globbing question (beginner)
@ 2010-08-12 20:43 Bryan Hunt
  2010-08-12 21:21 ` Mikael Magnusson
  2010-08-12 21:22 ` Frank Terbeck
  0 siblings, 2 replies; 3+ messages in thread
From: Bryan Hunt @ 2010-08-12 20:43 UTC (permalink / raw)
  To: zsh-users

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 ?
-- 
--


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-12 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-12 20:43 Globbing question (beginner) Bryan Hunt
2010-08-12 21:21 ` Mikael Magnusson
2010-08-12 21:22 ` Frank Terbeck

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).