file1. I want to append
file2 to file1 but without changing
file1. I want to put the output in anew file
If I used
cat file2 >> file1 this changes the content of
If you want to create a new file3 or file3 is empty.
cat file1 file2 > file3
If you want to append to file3.
cat file1 file2 >> file3
None of the above will modify file1 nor file2.