Hi, I just started using vifm. I have little web access, so my apologies if something like this got asked somewhere.
How do I make this command act on a range?
command! renametochecksum :execute 'rename' system('md5sum %c|cut -d" " -f1').'.%c:e'
Rename accepts a range and one can give it the same number of filenames to rename to. And the man page also says that the range is passed on as %a
. But I'm confused, what do I do with that information to make my command with system()
work on multiple files? (should I use a for loop on %f
in the shell?).