[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] Bulk-anything command

From: John Z.
Subject: Re: [Ranger-users] Bulk-anything command
Date: Thu, 22 Jun 2017 09:42:40 -0400
User-agent: Mutt/1.8.3 (2017-05-23)

> > Hi,
> >     is there a way to execute a command on selected files, much like
> >     bulkrename does?
> >     Right now, the only solution that comes to me is faking it, somehow,
> >     with sh and xargs.
> > 
> >     Cheers.
> Hi, 
> I typically do:
>   :shell for f in %s; do <mycommand> "$f"; done
> you could easily bind this to a key with:
>   :map X console -p22 shell for f in %%s; do  "$f"; done
> then, to run a command, you can type e.g. Xecho<ENTER>
> Regards,
> hut

Thanks for the tip, I ended doing something similar:

    :shell echo %s | tr " " "\n" | xargs -L 1 <command>.

I figure your way is less roundabout tho, but you know that thing when
you're stubborn and just really want to make it work :-D

reply via email to

[Prev in Thread] Current Thread [Next in Thread]