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

Re: Get the result of the last glob



On Wed, Aug 21, 2019 at 8:18 AM Stephane Chazelas
<stephane.chazelas@xxxxxxxxx> wrote:
>
> 2019-08-21 17:51:11 +0430, Aryn Starr:
> > Is there a way to get the result of the last glob?

In addition to zmv, you might also look at Functions/Zle/keeper in the
distribution.  It's set up to work with some ZLE key bindings, but it
also can be used standalone.

% source $^fpath/keeper(N[1])
% keep *
% for k in $kept; ebook-convert $k $k.epub

Or

% find . -name \*.mobi | keep

etc.



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