jeudi 6 septembre 2018

Linux if :syntax error: unexpected end of file

I am trying to run a simple linux if command and i am getting below error. Kindly advice

if [ $1 -gt 100 ]
then
echo Hey that\'s a large number.
pwd
fi

exit 0 

Error is as below

line 8: syntax error: unexpected end of file 

Aucun commentaire:

Enregistrer un commentaire