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
I'm assuming you want a line break between files.
for file in *.txt do cat "$file" >> result echo >> result done