fd0 / machma

Easy parallel execution of commands with live feedback

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to parse multiple args?

snowcrumble opened this issue · comments

For example:
echo "a.jpg b.jpg" | machma -- cp $1 $2

There's no way to do that from within, machma. It is meant to be a simple program. You could probably do that with a bit of shell magic, although I suspect that this won't handle corner cases.

Thx for reply, I can do this by:
echo "cp a.jpg b.jpg" | machma -- bash -c {}