while test "$N" -le "10"
echo "Number $N"
Then ran it like :
To get :
./test.sh: line 7: syntax error: unexpected end of file
Issue was that Windows/Dos files don't work well
as shell scripts, due to difference in new line formatting.
So, the solution is , dos2Unix convert command :
And, that's all.
Run happily ever after.