How to merge text files?

Have many text documents saved and want them to print them as one doc?

$ ls *.txt
file1.txt  file2.txt  file3.txt  file4.txt  file5.txt

Use cat:
 
$ cat file1.txt file2.txt file3.txt file4.txt file5.txt > bigfile.txt

Or you can use a for loop:

$ for i in *.txt; do cat "$i" >> bigfile.txt; done

$ ls *.txt
bigfile.txt  file1.txt  file2.txt  file3.txt  file4.txt  file5.txt