Bash Scripting - File Operations in Scripts
You want to write a script that logs the current date and a message to
logfile.txt. Which script correctly appends the date and message on separate lines?