RosettaCodeData/Task/Loops-For-with-a-specified-step/UNIX-Shell/loops-for-with-a-specified-step-1.sh
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

5 lines
70 B
Bash

x=2
while test $x -le 8; do
echo $x
x=`expr $x + 2` || exit $?
done