I would like to concatenate a number of text files into one large file in terminal. I know I can do this using the cat command. However, I would like the filename of each fi
This method will print filename and then file contents:
tail -f file1.txt file2.txt
Output:
==> file1.txt <== contents of file1.txt ... contents of file1.txt ... ==> file2.txt <== contents of file2.txt ... contents of file2.txt ...