Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Globbing question (beginner)



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