Perform commands on selected items in Midnight Commander

For one-liners, use %t at the command line, which gets substituted for a list of your selected items.

for F in %t; do echo "${F} is selected"; done
cp %t /var/somewhereelse/

Press F2 for user menu and then choose Do something on tagged files or press @. In popup window you can provide your command.

It is important to notice that for each file command will be executed separately. It will be something like:

for file in files:
   COMMAND file

not

COMMAND file1 file2

Tags:

Mc

Files