I am using cat *.txt to merge multiple txt files into one, but I need each file to be on a separate line.
What is the best way to merge files with each file appearing on a new line?
I am using cat *.txt to merge multiple txt files into one, but I need each file to be on a separate line.
What is the best way to merge files with each file appearing on a new line?
You can iterate through each file with a for loop:
I'm assuming you want a line break between files.
just use awk
If you have a
paste
that supports it,does a really great job