I have a bash function:
println(){echo "$1" "$2" "$3"}
and
export -f println
I want to use GNU parallel to run println. The command should take inputs of the following arrays:
a1=(a b c)
a2=(x y)
a3=(z1 z2)
It should output the follows:
a x a3
a y a3
b x a3
b y a3
c x a3
c y a3
Which command can do that? I expect the command like:
parallel ... println ... a1 ... a2 .... a3
Thank you!
a x a3 a y a3Don't you wantz1z2?