I would like to use following for generating unique jobs, where {1} and {2} are unique tuples:
parallel echo {1} {2} ::: A B C D ::: A B C D
For instance in python (itertools) provides such a combinatoric generator:
permutations('ABCD', 2)
AB AC AD BA BC BD CA CB CD DA DB DC
Is there a way to implement it directly via bash? Or GNU parallel itself? Maybe skip redundant jobs somehow? But then, how can I check which parameter combinations were already used.
parallel echo {= 'if($_==3) { skip() }' =} ::: {1..5}