I need my script to send an email from terminal. Based on what I\'ve seen here and many other places online, I formatted it like this:
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