Look Up Another Term


Redirected from: combining text files

Definition: concatenating text files


To append one text file to another, use the command line in DOS, Windows, Mac, Unix and Linux, as follows:
 Combine 1.TXT and 2.TXT Creating 3.TXT

 copy 1.txt + 2.txt 3.txt  DOS/Windows

 cat 1.txt 2.txt > 3.txt   Mac/Unix/Linux


 Append 2.TXT to End of 1.TXT

 copy 1.txt + 2.txt   DOS/Windows

 cat 2.txt >> 1.txt   Mac/Unix/Linux


 Display Contents of Text File

 type 3.txt   DOS/Windows

 cat 3.txt    Mac/Unix/Linux