How can I create a new file "new.txt" that is a concatenation of "file1.txt" and "file2.txt" in Unix?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
|||
|
|
migrated from stackoverflow.com Jan 4 '11 at 9:28
|
|||||||||||||||
|
|
if the file new.txt is an empty file, you can simply use the cat command :
if new.txt is not empty, and you want to keep its content as it is, and just want to append the concatenated output of two files into it then use this:
|
||||
|
|
|
If you want to append two or more files to an existing file without overwriting the file's (
Even if the file |
||||
|
|
