Skip to content
Advertisement

Bash: Syntax Error Near Unexpected Token `(‘ When Using Wgrib2

Good Evening All,

I’m currently having a bash syntax issue when I try to run the following command in my terminal, the

bash: syntax error near unexpected token `(‘

error message pops up after I run the below code:

JavaScript

I realize that not many people on here probably have experience using wgrib2 but, this seems like a syntax error, not an issue with the program…

Advertisement

Answer

Parentheses and pipes have special meaning to the shell, you need to quote or escape them:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement