...
Codeblock |
---|
$ sbatch parallel_job.sh |
Looping over two arrays
You can use parallel
to loop over multiple arrays. The --xapply
option controls, if all permuatations are used or not:
Codeblock |
---|
$ parallel --xapply echo {1} {2} ::: 1 2 3 ::: a b c
1 a
2 b
3 c
$ parallel echo {1} {2} ::: 1 2 3 ::: a b c
1 a
1 b
1 c
2 a
2 b
2 c
3 a
3 b
3 c |
.