kevdog
November 27th, 2008, 07:44 AM
Is there an equivalent shell script syntax that would mimik C's for statement syntax (for i=0; i<5; i++){....};
The best I can come up with would be something like this:
c=0
while [ c -lt 5 ]; do
c=`expr $c + 1`;
done
Seems like a clumsy way of doing the same thing to me??
The best I can come up with would be something like this:
c=0
while [ c -lt 5 ]; do
c=`expr $c + 1`;
done
Seems like a clumsy way of doing the same thing to me??