https://techwetrust.com/how-to/how-to-append-text-to-an-existing-file-in-linux-or-mac-os/?share=twitter
How to append text to an existing file in Linux or Mac OS?