You're viewing a comment by MicheleVenturi and its responses.

September 29, 2015, 23:56

Cartesian Product

join -1 2 -2 2 <(echo ${${1//,/\\n}//({|})/}) <(echo ${${2//,/\\n}//({|})/})|gsed 's/^ /(/;s/ /,/;s/$/)/;s/\n/,/'|gsed -z 's/\n/,/g;s/^/{/;s/,$/}\n/'<\pre>

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "unix_97": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.