LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Bash script -----------syntax error: unexpected end of file (http://www.linuxquestions.org/questions/programming-9/bash-script-syntax-error-unexpected-end-of-file-722945/)

ArthurHuang 05-01-2009 11:24 AM

Bash script -----------syntax error: unexpected end of file
 
#!bin/bash
for i in $(seq 10 0.01 100 )
do
for j in $(seq 0 0.01 100)
do
./test 10 50 $i $j 2 2 5

done

exit 0



Can anyone see any reasons causing "syntax error: unexpected end of file" in this pathetic short script?

THANK YOU

jan61 05-01-2009 11:27 AM

Moin,

Quote:

Originally Posted by ArthurHuang (Post 3526796)
#!bin/bash
for i in $(seq 10 0.01 100 )
do
for j in $(seq 0 0.01 100)
do
./test 10 50 $i $j 2 2 5

done

exit 0

You start two for loops, but end only one. There's the inner "done" missing.

Jan

pixellany 05-01-2009 11:29 AM

each "for" needs a "done" (loop inside a loop)


All times are GMT -5. The time now is 05:01 AM.