How can I append a new line to a text file followed by current date and time?
echo "text" >> file date >> file
If you want to have just in one line
echo -n "text" >> file date >> file
You can also use
printf instead. A one line solution would be
printf "\nsome text\n$(date)" >> file.txt