Joining two file with sed awk separated by comma

I have two files.

file1.txt

example1
example2
example3

file2.txt

testing1
testing2
testing3

I am trying to join the values from these two files into a new comma separated file, with output

example1,testing1
example2,testing2
example3,testing3

Could anyone help to do this in awk/sed ?
thank you


Source: bash

Leave a Reply