Append file contents to the bottom of existing file in Bash [duplicate] Append file contents to the bottom of existing file in Bash [duplicate] bash bash

Append file contents to the bottom of existing file in Bash [duplicate]


This should work:

 cat "$API" >> "$CONFIG"

You need to use the >> operator to append to a file. Redirecting with > causes the file to be overwritten. (truncated).