Suppose, I have a folder and it has a lot of cpp files in it, how would a bash script be if i want to loop through all files and at the end of each file content i want to write