SyntaxFix
Write A Post
Hire A Developer
Questions
Note one can also get this error if you do this;
while read line; do echo $line done << somefile
Because << somefile should read < somefile in this case.
<< somefile
< somefile