I have two text files. the first one looks like this:
a
b
c
another file looks like this:
1 2
3 4
I want to use bash scripts in Linux to merge these two files so that each row of the first file will be placed next to all the rows of the second file and output looks like this:
a 1 2
a 3 4
b 1 2
b 3 4
c 1 2
c 3 4
Any help would be appreciated
while readloops, or an awk script