Originally Posted by dcdw51
I am "cat txt0.txt txt1.txt txt2.txt txt3.txt > allfiles.txt"
I need it to read as
Instead its taking all the files and taking the information within each txt file and putting them all together.
It sounds like cat is working exactly as it should. It concatenates files.
I am guessing that you want allfiles.txt to contain the filenames, not the contents of those files. There are a number of ways to do that. Here is one:
ls txt*.txt > allfiles.txt
Replace txt*.txt with the appropriate file specification for the file list you require.