Encyclopedia

concatenating text files

Also found in: Dictionary, Medical.

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
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Mentioned in
Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.