concatenating text files


Also found in: Dictionary, Thesaurus, Medical, Legal, Wikipedia.

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/LinuxAppend 2.TXT to End of 1.TXT

 copy 1.txt + 2.txt   DOS/Windows

 cat 2.txt >> 1.txt   Mac/Unix/LinuxDisplay Contents of Text File

 type 3.txt   DOS/Windows

 cat 3.txt    Mac/Unix/Linux
Mentioned in ?