I would like to separate the arguments in GNU parallel using a custom separator.
For example:
$ seq 19 30 | parallel -n 4 --dry-run 'my-command {}'
my-command 19 20 21 22
my-command 23 24 25 26
my-command 27 28 29 30
What I want to achieve:
$ seq 19 30 | parallel --MAGIC-OPTION ',' -n 4 --dry-run 'my-command {}'
my-command 19,20,21,22
my-command 23,24,25,26
my-command 27,28,29,30
Does such a --MAGIC-OPTION exist? I did not find it in the man pages.
There is no such option. If you only have 4 args, you can do:
Otherwise, you will have to do something like:
or:
or: