I am trying to assign values to variables using GNU Parallel:
$ parallel --dry-run --xapply a{1}={2} ::: a b c ::: 5 6 7
aa=5
ab=6
ac=7
But the execution seems not to be working OK:
$ parallel --xapply a{1}={2} ::: a b c ::: 5 6 7
$ echo $aa
$ echo $ab
$ echo $ac
Empty values in all cases.
What is going on, and how could I assign a value to a variable by using GNU Parallel?
Further data:
- I know there are ways to make GNU Parallel inherit the variables from its parent process, but in this case what I want is the reverse.