How can I use shell one-liners and common GNU tools to concatenate lines in two files as in Cartesian product? What is the most succinct, beautiful and "linuxy" way?
For example, if I have two files:
$ cat file1
a
b
$ cat file2
c
d
e
The result should be
a, c
a, d
a, e
b, c
b, d
b, e