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

Re: Globbing question (beginner)



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



Messages sorted by: Reverse Date, Date, Thread, Author