vi editor for loop syntax problem
Asked by
Suman Mitra
for (( i=0; i<=5; i++ ))
do
echo "$i Echoed"
done
this is what wrote in "bubble.sh" with vi editor and it gave me this error "bubble.sh: 1: bubble.sh: Syntax error: Bad for loop variable
"
i don't seem to understand why this is happening..please help
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Suman Mitra for more information if necessary.
To post a message you must log in.