Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

syntax error: word unexpected (expecting "in")

I was on a virtual machine and I started the editor with windows notepad and it converted the script to dos. So, I ended up installing dos2unix, which I used to convert the script. Then, the script worked.
 
PREVIOUS NEXT
Tagged: #syntax #word #unexpected
ADD COMMENT
Topic
Name
6+7 =