Linux CLI - Pipes and Redirection
You have a script that logs errors to
error.log. You want to keep all previous errors and add new ones each time the script runs. Which command should you use inside the script to save the error message "Error occurred" to the file without deleting old logs?