Shell Script (Bash) write to Text-File question

I think that’ll be because you are cating your file as well as the new line.

Just echo the new line and append redirect (>>) that to your file.

See also:

1 Like