TecMint published a tutorial on how to resolve the "bash syntax error near unexpected token" error in Linux.
How to Fix "bash: syntax error near unexpected token" Error
One of the most common errors that users encounter when executing shell scripts or commands on the bash shell is "bash: syntax error near unexpected token '('".