I have a question I could not find an answer to (certainly due to my lack of knowledge of shell syntax).
I have an automator program that adds a new line to a textfile with a shell command:
echo -e "$@\n$(cat "/Users/(...)/Documents/Text-File.txt")" > "/Users/(...)/Text-File.txt"
My problem is, that it adds the new line on top of the text file, but I need it at the end or somewhere within the document (that does not matter – just not on top, because there is a needed headline…). Does someone know how I could change the shell to do that?