The syntax for a while loop in bash is
Code:
while [ condition ]
do<commands>
done
but what is the equivalent for the c-style
Code:
do
{<commands>
}while(condition);
I can't seem to get the post-test loop syntax working in a bash script.
A possible work around is to use a break:
Code:
while [ 1 ]
do<commands>
<condition> || break
done
I would assume that there must be syntax for a post-test loop in bash.