awk -v OFS=, 'NR==FNR{a[NR]=$0;next} {print $0, a[FNR]}' file1 file2


but this is really a job for paste

combining outputs of two text file with awk to another file
I know Emacs tries to be intellectual and opens its helper buffers depending on which dimension of the window is bigger, so it may appear in vertical split window if current width is bigger than height, and in horizontal split otherwise.

But I’d prefer it to open that list always in horizontal split, because there are long paths I can’t see when the buffer is placed in vertical split. How can I do this?
