I am trying to run the following multiple commands a command prompt but I get syntax error near unexpected token '}'. The following page examples where it is working but I am getting the syntax error. I am running Ubuntu desktop 18.04.5. What am I missing? Thanks.
{echo "Today's date and time"; date;} > f1