You can use Linux shell redirection operator (>>) to append the content of one file to another.
Example:
Create some files with content
1 2 3 |
## Create a some files with content echo "hello" > file1 echo "world" > file2 |
Append content of a single file to another
1 2 3 4 5 6 7 8 |
## Append content of a single file to another cat file1 >> file2 ## Check the content of file2 cat file2 ## returns ## world ## hello |
Append content of multiple files to another
1 2 3 4 5 6 7 8 9 10 11 |
## Append content of multiple files to another cat file1 file2 > file3 ## file3 will be created if not exists else overridden ## Check the content of file3 cat file3 ## returns ## hello ## world ## hello rm file* |