I have a problem implementing a for loop. I get this error when I execute my script
test1.sh: 2: Syntax error: Bad for loop variable
A standard POSIX shell only accepts the syntax for varname in list
for varname in list
The C-like for-loop syntax for (( expr1; expr2; expr3 )) is a bashism.
for (( expr1; expr2; expr3 ))
You can get similar behavior in the standard POSIX shell using for c in $(seq 1 5)
for c in $(seq 1 5)