I have two lists
A='"foo" "bar"'
foo='"alpha" "beta"'
bar='"gamma" "delta"'
I want to iterate over list A and in a nested loop iterate over lists foo and bar so that i can execute a command in the nested loop where i can execute a commands like
./submit_to_cluster --x=foo --y=alpha
./submit_to_cluster --x=bar --y=delta
Is the iteration over the two lists in a nested manner the best way to do this efficiently?