I am getting syntax error near unexpected token done while executing my shell script: while read filenamedo  echo $filename  if [ -s $filename ]; then    tail -10 $filename | grep `date '+%Y-%m-%d'` >> $lastlines1    echo - Next Error File -  >> $lastlines1  done  else  echo  no errrorsfiAny ideas, where am I going wrong?
/shell-script: syntax error near unexpected token `done'
shell script