How can I create a new file "new.txt" that is a concatenation of "file1.txt" and "file2.txt" in Unix?
|
| |||
|
feedback
|
migrated from stackoverflow.com Jan 4 '11 at 9:28
This question came from our site for professional and enthusiast programmers.
| |||||||||||||||
feedback
|
|
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:
| ||||
|
feedback
|
|
If you want to append two or more files to an existing file without overwriting the file's (
Even if the file | ||||
|
feedback
|