append contents of one file to another file code example
Example 1: append contents of one file to another
cat file2 >> file1
Example 2: append contents of one file to another
cat file1 | tee -a file2
cat file2 >> file1
cat file1 | tee -a file2