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

December 27, 2016, 22:50

Here's a nice way to achieve the Cartesian join using only tools already present in your article, but without any general purpose languages such as awk.

join -1 1 -2 1 -o 1.2,2.2 \
<(sort -u setA.txt | sed 's/^/x /') \
<(sort -u setB.txt | sed 's/^/x /')

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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